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
% -compile([debug_info, export_all]). | |
% -define (VALUE (Call), io:format ("~p:~p ~s = ~p~n", [?MODULE, ?LINE, ??Call, Call])). |
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
#!/usr/bin/ruby | |
filename, line_no = ARGV.pop.split ':' | |
exec "mine -l #{line_no} #{filename} &" |
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
# list interesting methods | |
def listm(object) | |
(object.methods - Object.methods).sort | |
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
.projects_stories_page .storyLabels a[title="triage: red"] { | |
background-color: red; | |
color: white !important; | |
padding: 0 3px; | |
display: inline-block; | |
} | |
.projects_stories_page .accepted .storyLabels a[title="triage: red"] { | |
background-color: inherit; | |
color: inherit !important; |
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
# To delete all branches on origin that have already been merged into master: | |
git fetch origin && git remote show origin | grep tracked | grep -v master | awk '{print $1}' | xargs -I '{}' bash -c 'if [ ! "$(git cherry origin/master origin/{})" ]; then git push origin :{}; fi' | |
# To show the authors of unmerged branches: | |
git fetch origin; git branch -r | grep origin | xargs -I {} bash -c 'if [[ ! `git cherry HEAD {}` ]]; then echo "{} -- $(git show --format=%an {} | head -n 1)"; fi' | |
# If you think you lost a commit somehow and it's not stashed and not in a branch, |
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
cat temp.txt | ruby -ne 's ||= 0.0; s += $_.to_f; puts s' |
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
#!/bin/bash | |
# nuke-dbs -- completely restore nbuild databases | |
cd $NBUILD | |
# Note: This script assumes that your checkout of nbuild is | |
# in ~/Workspace/nbuild. | |
# Exit if errors are encountered |
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
#!/usr/bin/env ruby | |
require 'nokogiri' | |
require 'github/markup' | |
def preformatted_html | |
file = ARGV.first | |
GitHub::Markup.render(file, File.read(file)) | |
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
Show hidden characters
[ | |
// bind 'jj' to exit insert mode | |
{ "keys": ["j", "j"], "command": "exit_insert_mode", | |
"context": | |
[ | |
{ "key": "setting.command_mode", "operand": false }, | |
{ "key": "setting.is_widget", "operand": false } | |
] | |
}, |
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
{ | |
"auto_complete": false, | |
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme", | |
"font_size": 16, | |
"ignored_packages": | |
[ | |
], | |
"ruby_eval": | |
{ | |
"ruby": "/Users/nbdev/.rvm/rubies/ruby-1.9.3-p327/bin/ruby" |
OlderNewer