HNHacker News
TopNewBestAskShowJobs

dhamidi

77 karma · joined March 17, 2013

https://github.com/dhamidi Email: dario.hamidi@gmail.com

meet.hn/city/ee-Tallinn

Socials: - instagram.com/lendavvaip

Interests: Fitness, Entrepreneurship, Remote Work, Programming, Web Development

---

submissionscomments
dhamidi··on Percol: An interactive grep tool in your terminal
Update: the README now describes the available key bindings and gives more usage examples.
dhamidi··on Percol: An interactive grep tool in your terminal
Regarding Emacs: git ships with Emacs integration <https://github.com/git/git/tree/master/contrib/emacs>.

Note that most likely git.el is not on your load-path. After it is loaded, you can use M-x git-status to interactively stage, diff and commit files. In the git-status buffer you can checkout a branch with C-c C-o. If helm is installed, you'll get something similar to percol right in Emacs.

dhamidi··on Percol: An interactive grep tool in your terminal
Would you mind sharing what that alias would look like and do? I can only imagine it appending the string "| tmenu" to the current line, eventually pressing Return for the user as well.
dhamidi··on Percol: An interactive grep tool in your terminal
Funnily enough, I recently implemented something akin to percol:

https://github.com/dhamidi/tmenu

It actually tries to be dmenu for the terminal.

dhamidi··on Ask HN: Help. I need to go away from here
+1 for Estonia

"Jobless programmer" is kind of a joke there.

dhamidi··on Show HN: Convos, a OSS persistent IRC web client built using Mojo and Redis
I didn't know that Mojolicious supports hot deployment...thanks for linking to the deployment guide!
dhamidi··on Shpec -- rspec like testing for shell scripts
Example test: https://github.com/dhamidi/shtuc/blob/master/t/shtuc-get-shp...

Here is an excerpt:

  describe 'the requested file exists'
    it 'outputs the contents of a non-executable'
      expect "$(shtuc-get shtuc-find-test)" to = success
    end
  end
dhamidi··on Gulp: The streaming build system
What are the advantages of this (or `grunt') over `make'? Being JavaScript-based makes it more accessible than `make' but also ties it to just one language. What am I missing?
dhamidi··on Webserver in bash (2007)
That is a HTTP client written in bash.
dhamidi··on Wisp: a homoiconic JS dialect with Clojure syntax, s-expressions and macros
To my knowledge, keywords are actually functions in Clojure, which do have an equivalent in JS. "Looks more like Clojure" seems like a good enough reason to me.
dhamidi··on Wisp: a homoiconic JS dialect with Clojure syntax, s-expressions and macros
What is the benefit of having three ways to write strings?

        \a  ;; compiles to "a"
	:a  ;; compiles to "a"
	"a" ;; compiles to "a"
This is not meant as destructive criticism; I'm genuinely interested in the motivation for that.
dhamidi··on Go Replace - simple and fast search and replace tool for command line
Probably slower than the go version, but more flexible since you have more over the files processed.

        # bash
	# find/replace
	function fr {
		local pattern=$1
		local replacement=$2
		local program

		if [[ -z "$replacement" ]]
		then
			program="grep $pattern"
		else
			program="sed -i s/$pattern/$replacement/g"
		fi

		while read line
		do
			$program "$line"
		done
	}

	# usage
	find . | fr find-this
	find . | fr replace-this with-that
dhamidi··on The most useful thing in bash
That feature is actually named "Process Substitution".

"anonymous named pipes" is contradictory, since anonymous means that something has no name.

dhamidi··on Show HN: Subvim – Vim customized to be like SublimeText
GNU Readline already provides a lot of VI's (so almost VIM) functionality as a library. Maybe that could be used as a starting point? It probably still is a lot of work though.
dhamidi··on A new blog dedicated to Emacs
You can read RSS feeds in Emacs with Gnus: http://www.emacswiki.org/emacs/GnusRss
← PreviousPage 2 of 2