Skip to content

Instantly share code, notes, and snippets.

def every_10th_min
600 - (Time.now.to_i % 600)
end
#!/bin/bash
set -e
hostport=(${1//:/ })
host=${hostport[0]}
port=${hostport[1]}
shift
cmd="$@"
<key>Custom Commands</key>
<dict>
<key>Duplicate Line - Down</key>
<string>selectLine:, copy:, moveToBeginningOfLine:, moveDown:, insertLineBreak:, moveUp:, paste:, deleteBackward:</string>
<key>Duplicate Line - Up</key>
<string>selectLine:, copy:, moveToBeginningOfLine:, insertLineBreak:, moveUp:, paste:, deleteBackward:</string>
</dict>
@rockotseng
rockotseng / IDEs
Last active August 29, 2015 13:56
IDEs
IDEs:
* Sublime Text (http://www.sublimetext.com/):
awesome plugins and its community
* Atom from Github(https://atom.io):
text editor from Github.
still waiting for beta invitation
* Scripted (https://github.com/scripted-editor/scripted):