This file contains 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 | |
gource \ | |
--user-image-dir avatars/ \ | |
--title "viewthespace" \ | |
--highlight-users \ | |
--user-scale 3 \ | |
--auto-skip-seconds 0.01 \ | |
--file-idle-time 0 \ | |
--highlight-colour 00FF00 \ |
This file contains 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 | |
# Pre-commit hook that prevents debugging code and merge artifacts from being committed. | |
FILES_PATTERN='\.(rb|erb|haml|js|coffee)(\..+)?$' | |
FORBIDDEN=( "binding\.pry" "save_and_open_page" "debugger" "it\.only" "describe\.only" ">>>>>>" "<<<<<<" "======" ) | |
# the exit code from `grep -E $FILES_PATTERN` gets swallowed unless the pipefail option is set | |
set -o pipefail |
This file contains 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
# Configuration | |
cfg = | |
oauth_token: '' | |
repo: 'viewthespace/viewthespace' | |
number_of_pulls: 40 | |
timeout: 5000 | |
unless cfg.oauth_token.length | |
return console.error """ | |
Please generate an oauth token and place in cfg object. |
This file contains 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
# shellcheck shell=bash | |
# shellcheck source=/dev/null | |
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
[[ -s "$HOME/.fzf.bash" ]] && source "$HOME/.fzf.bash" | |
export NVM_SYMLINK_CURRENT=true | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$HOME/.asdf/asdf.sh" ] && . "$HOME/.asdf/asdf.sh" | |
[ -s "$HOME/.asdf/completions/asdf.bash" ] && . "$HOME/.asdf/completions/asdf.bash" |
This file contains 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 Foobar () { | |
} | |
Foobar.prototype.foo = 1; | |
Foobar.prototype.bar = {qux: 1}; | |
Foobar.prototype.baz = {qux: 1}; | |
var a = new Foobar(); | |
var b = new Foobar(); |
This file contains 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
{ | |
"binDir": "/Users/chris/.nvm/current/bin/" | |
} |
This file contains 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
2014-07-14 13:12:01 -0400 | |
The server is down, I am working on it. I will post updates here as they occur. | |
This is unlikely to be resolved within the next 12 hours. | |
2014-07-15 14:34:02 -0400 | |
All previously recorded data has been preserved, but no new stats will be recorded while the server is down. | |
The restoration process should be completed within the next 24 hours. |
This file contains 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
javascript:(function() { | |
var ids = _.uniq($('.visible .selected').closest('.story').map(function() { return this.className.match(/story_(\d+)/)[1]; })); | |
var prString = '[Fixes #' + ids.join(' #') + ']'; | |
window.prompt('Copy to clipboard:', prString); | |
})(); |
This file contains 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
{ | |
"coffeescript_error": { | |
"level": "error" | |
}, | |
"arrow_spacing": { | |
"name": "arrow_spacing", | |
"level": "ignore" | |
}, | |
"no_tabs": { | |
"name": "no_tabs", |
This file contains 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
[push] | |
default = simple | |
[pull] | |
ff = only | |
[core] | |
whitespace = cr-at-eol | |
# https://stackoverflow.com/a/10584237 | |
pager = less -x1,5 | |
[color] | |
ui = true |
OlderNewer