- Go to iTerm > Preferences... > Keys
- Add a Global Shortcut Key
- Type the
delete
key as Shortcut - Select Send Hex Codes as Action and type
0x004
- Click on
OK
and you're good to go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.scriptObject=document.createElement('script'); | |
this.scriptObject.type='text/javascript'; | |
this.scriptObject.src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'; | |
var ssc = document.getElementsByTagName('script')[0]; | |
ssc.parentNode.insertBefore(this.scriptObject, ssc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [*50..1000].collect {|val| val = val + 10} | |
# https://github.com/jruby/jruby/wiki/Profiling-jruby | |
require 'jruby/profiler' | |
profile_data = JRuby::Profiler.profile do | |
# code to be profiled: | |
[*50..1000].collect {|val| val = val + 10} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ipfw add 7890 deny ip from news.ycombinator.com to any |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chflags -R nouchg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin | |
class ReturnToVintageCommandModeListener(sublime_plugin.EventListener): | |
def on_activated(self, view): | |
if view.settings().get("is_widget") is None: | |
view.run_command('exit_insert_mode') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function block() { | |
if ! [ "$1" = "" ] ; then | |
case $1 in | |
on) | |
sudo ipfw add 7890 deny ip from news.ycombinator.com to any | |
sudo -s "echo '127.0.0.1 facebook.com' >> /etc/hosts" | |
sudo -s "echo '127.0.0.1 www.facebook.com' >> /etc/hosts" | |
;; | |
off) | |
sudo ipfw del 7890 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in {0..255} ; do | |
printf "\x1b[38;5;${i}mcolour${i}\n" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://jsperf.com/math-round-vs-hack/3 |