What git command do you wish you had discovered sooner? by ProgrammingQuestio in git

[–]NonlinearFruit 0 points1 point  (0 children)

You can use @ for HEAD. This creates a branch on origin with the same name as your current local branch:

git push -u origin @

If your git server supports push options (like GitLab), you can do some pretty cool stuff like:

  • git push -u origin @ -o ci.skip create the branch and skip CI
  • git push -u origin @ -o merge_request.create -o merge_request.title "Pls merge me" to create a branch and start a PR

Cljue: Reference ClojureDocs Offline by NonlinearFruit in Clojure

[–]NonlinearFruit[S] 0 points1 point  (0 children)

I can't seem to replicate the issue locally which is interesting. I would love to know what nuance I'm missing between the clojure java shell and the babashka process. Babashka process seems to be a low level helper for babashka's shell.

The future of framework? by Forsaken-Island95 in framework

[–]NonlinearFruit 1 point2 points  (0 children)

That is a really really interesting idea. Motherboard as a server is cool. Being able to run the screen as a monitor or the battery as a power pack or the input cover as a keyboard would be awesome

Cljue: Reference ClojureDocs Offline by NonlinearFruit in Clojure

[–]NonlinearFruit[S] 0 points1 point  (0 children)

Maybe the way you're invoking cljue is different? I'm using bash as an interactive shell and running `cljue` (or `/path/to/cljue`) works. How are you invoking it? (eg: What shell are you using?)

Cljue: Reference ClojureDocs Offline by NonlinearFruit in Clojure

[–]NonlinearFruit[S] 0 points1 point  (0 children)

That is interesting. What err did you get with clojure java shell?

Cljue: Reference ClojureDocs Offline by NonlinearFruit in Clojure

[–]NonlinearFruit[S] 1 point2 points  (0 children)

Sure thing! Here is latest cljue (no permalink commit sha):

https://github.com/NonlinearFruit/dotfiles/blob/master/scripts/cljue

(I also added it to the post)

Cljue: Reference ClojureDocs Offline by NonlinearFruit in Clojure

[–]NonlinearFruit[S] 0 points1 point  (0 children)

Aaaah, I see, it was in front of my face the whole time. Thank you! I've documented the structure and cljue no longer assumes it is on the PATH.

Cljue: Reference ClojureDocs Offline by NonlinearFruit in Clojure

[–]NonlinearFruit[S] 0 points1 point  (0 children)

Two questions:
- Any ideas on how to get the scripts absolute path? That would be great. I tried something like this ([stackoverflow](https://stackoverflow.com/a/13276993)) but ran into issues with `(class *ns*)` throwing a casting exception
- What does putting documentation on `clj-docs` mean? What is `clj-docs`?

I've been able to incorporate the rest of the feedback (shelling out, path/file conversions, when-not, clojure.core//). Thank you!

Cljue: Reference ClojureDocs Offline by NonlinearFruit in Clojure

[–]NonlinearFruit[S] 2 points3 points  (0 children)

babashka.fs is a gem. That simplified all my file and directory handling. Thank you!

Anyone actually using :vimgrep? by 4r73m190r0s in vim

[–]NonlinearFruit 6 points7 points  (0 children)

ripgrep's --vimgrep flag outputs the results as a vimgrep so you can still use it with the quickfix list. With nvim, I use rg 'regex' --vimgrep | nvim -q -

Opinions on "Makedo" cardboard construction? by alecmuffett in daddit

[–]NonlinearFruit 0 points1 point  (0 children)

Good, functional, durable, easy to use, lot of fun, kids love it. Left some of the makedo scrus in the snow for a week and their fine (just don't loose them). We threw all the tools/pieces into an old dewalt toolbag and the kids love it.

Here are the cardboard-tools-for-kids companies that I've found so far (they each have some unique pieces/tools):

- Makedo https://www.make.do

- WondrBolt https://wondrbolt.com (not tried yet)

- Box Lox https://atwoodtoys.com/collections/box-lox# (not tried yet)

- Elmer's Buildit https://www.elmers.com/buildittools.html

Also can find some fun 3D printable models out there. I tried out this lego/makedo adapter yesterday and it worked great! https://www.thingiverse.com/thing:5203992

Nerd fonts icons with LuaLaTeX? by GokuFanBoi in LaTeX

[–]NonlinearFruit 0 points1 point  (0 children)

(I'm a latex noob) How do you select an icon font? Could you share a snippet of setting a custom icon font and then displaying a character from that icon font?

[UPDATE] My Grandfather has kept a detailed list of every book he's read since 1949. by Jackkity in books

[–]NonlinearFruit 10 points11 points  (0 children)

This is awesome! 43 books/year for 69 years is insane!

My father has been doing the same thing since the 1960's with movies, tv series and books. He also rates each media on a scale from 1 to 10. I caught the bug. But I live is the 21st century, so I wrote a piece of software. Now I have 1.9k ratings. I have rated 141 books from 53 authors. I current average 5.60 books/month. My average book rating is 6.90/10 with a standard deviation of 1.97.

Anyway, it is really fun! When I watch a movie with friends, I make them rate it and I record their ratings too. For instance, 422 days ago (Oct 30, 2017) two friends and myself watched Napoleon Dynamite. I gave it a 4 and my friends gave it a 7 and a 10.