News for hackers. Stuff that matters.

gaving

Re:Ask HN: What are your best shell scripts that you use? on Tuesday December 31, 2019 @05:40AM (#21920134)
Pretty cool with the editor interaction.

Also worth bearing in mind most shells can do this sort of thing easily enough too.

The example from your video with zsh's zmv (bundled: https://github.com/zsh-users/zsh/blob/master/Functions/Misc/... )

  > touch btn_google_{signin,signup}_dark_normal_web{,@2x}.png # create files
  > ls -l
  .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signin_dark_normal_web.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected]
  .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signup_dark_normal_web.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected]

  > zmv -n -W btn_*_sign*_dark_normal_web* *_sign_** # dry run
  mv -- btn_google_signin_dark_normal_web.png google_sign_in.png
  mv -- [email protected] [email protected]
  mv -- btn_google_signup_dark_normal_web.png google_sign_up.png
  mv -- [email protected] [email protected]

  > zmv -W btn_*_sign*_dark_normal_web* *_sign_** # change files
  > ls -l
  .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_in.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected]
  .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_up.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected]
Interesting to see an article about this, I knocked together a React app the other month for my company based off questions from rands famous "Shields Down" https://medium.com/the-blueprint/shields-down-c291f015618f using this method.

https://github.com/gaving/happy-or-not

Never got around to analyzing the data, too scared.

Nothing to hide; nothing to fear, right?
Re:Ask HN: What's your working day like? on Monday May 08, 2017 @01:41PM (#14293798)
I'd certainly try it out for a day or two a week, backpack / jersey pockets for stuff.. easier if you have a locker or showers at your work. Hopefully you wouldn't arrive too sweaty after 3 miles which should take you about ~15 minutesish.

Win-win though, exercise and if you get in to it less fuel costs. Could easily clock up 30 miles a week and extend your route on nice days.. no brainer!

Re:Ask HN: What's your working day like? on Monday May 08, 2017 @12:09PM (#14292871)
"5 minute drive"? Buy a bike and chuck out 0600-0700!
Re:Disassembling Sublime Text on Monday December 05, 2016 @02:29AM (#13103918)
Re:Shopify is processing over $260k per minute right now on Friday November 25, 2016 @06:13PM (#13040568)
Neat D3 based globe component, don't suppose the source is anywhere?
Re:Sublime Enhanced on Monday August 01, 2016 @06:45AM (#12201370)
Aren't most people using neovim now?
Re:Electron 1.0 is here on Wednesday May 11, 2016 @09:48AM (#11675191)
If you don't have to support win32 platforms, I'd say go with Electron.

Other than that, features pretty similar.

Re:What's new in NW.js v0.13 on Thursday March 24, 2016 @06:47AM (#11351820)
Re:Neovim public release 0.1.0 on Monday November 02, 2015 @05:20AM (#10491003)
Congrats to the team, I'm dying to switch myself but closely watching Windows support since it's unfortunately my primary work platform.
Re:Using htop to generate a live website background on Saturday October 03, 2015 @10:45AM (#10324051)
Nice. Always meant to try and do something similar myself using https://github.com/joewalnes/websocketd
Re:Show HN: Australia Quiz (Sound) on Saturday February 21, 2015 @09:43AM (#9085624)
Weekend(ish) project to play with React.

https://github.com/gaving/terra

Related:- https://news.ycombinator.com/item?id=7178358

Re:Show HN: First Clojure project on Monday January 26, 2015 @02:17PM (#8948939)
Rather than a hello world, a GUI to show users on a GitLab instance.
Re:Great Quotes on Saturday December 27, 2014 @07:22AM (#8802369)
I'm prone to indecision, and try to remember this one at all times:-

"He who deliberates fully before taking a step will spend his entire life on one leg."

- Chinese Proverb

Re:Node.js in Flame Graphs on Wednesday November 19, 2014 @03:39PM (#8632469)
Re:A look at the 2014 Mac mini on Sunday October 19, 2014 @03:26PM (#8479267)
Even more hilarious is the sounds of these "tamper proof" screws on the bottom. I mean, why do they care so much?
Re:Commander Keen source code released on Tuesday September 16, 2014 @05:22PM (#8327190)
http://github.com/keendreams/keen/blob/master/kd_main.c#L279

God, so wish I'd known this at the time.

Re:Practical Tmux on Monday May 19, 2014 @03:06AM (#7766082)
Woah. Just tried prefix-alt-[n], totally awesome.

Thanks!

Re:Neovim's Next Feature Poll on Wednesday April 30, 2014 @03:45AM (#7672053)
Loving the progress of Neovim so far, even better that notable plugin authors (https://github.com/neovim/neovim/issues/622#issuecomment-415...) are getting involved.
Re:Please fix: Unknown or expired link. on Saturday April 26, 2014 @11:21AM (#7651660)
I'm not sure anybody particularly cares why it is happening, just that it is happening.

Older »