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
--- | |
Language: Cpp | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: false | |
AlignConsecutiveAssignments: false | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: false | |
AlignTrailingComments: false | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false |
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
$ brew info elasticsearch | |
elasticsearch: stable 1.3.1, HEAD | |
http://www.elasticsearch.org | |
/usr/local/Cellar/elasticsearch/1.3.0 (36 files, 30M) | |
Built from source | |
/usr/local/Cellar/elasticsearch/1.3.1 (36 files, 30M) * | |
Built from source | |
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/elasticsearch.rb | |
==> Caveats | |
Data: /usr/local/var/elasticsearch/elasticsearch_oki/ |
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
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
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
# in ~/bin/gitprompt.csh: | |
setenv GIT_BRANCH_CMD "sh -c 'git branch --no-color 2> /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'" | |
set prompt="%m:%~ `$GIT_BRANCH_CMD`%B%#%b " | |
# and then in ~/.cshrc: | |
alias precmd "source ~/bin/gitprompt.csh" |
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
com = { cyberfox: {} }; | |
/** | |
* Convert a property name into a human readable string by replacing _ with | |
* spaces, and upcasing the first letter of each word. | |
* | |
* @param {string} property The property name to convert into a readable name. | |
* @return {string} The property name converted to a friendly readable format. | |
* @private | |
*/ |