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
| git submodule update --init --recursive |
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
| git fetch | git branch --merged | grep -v " master" | grep -v "* " | xargs -n 1 -I {} sh -c 'echo "Deleting" {}; git branch -d {}; git push --delete origin {}; git branch -dr {}' |
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
| find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//" |
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
| find . -not \( -name .svn -prune -o -name .git -prune \) -type f -exec sed -i "" $'s/\t/ /g' {} \; |
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
| git tag -a v1.0.0 -m "v1.0.0" a5381e3c711c3489071da832a32b6efdeae3f0d6 |
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 getMethods(obj) { | |
| var result = []; | |
| for (var id in obj) { | |
| try { | |
| if (typeof(obj[id]) == "function") { | |
| result.push(id + ": " + obj[id].toString()); | |
| } | |
| } catch (err) { | |
| result.push(id + ": inaccessible"); | |
| } |
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/sh | |
| # Pre-commit hook for git which removes trailing whitespace, converts tabs to spaces, and enforces a max line length. | |
| # The script does not process files that are partially staged. Reason: The `git add` in the last line would fully | |
| # stage a file which is not what the user wants. | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 ; then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
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
| /** | |
| * 1) Use http://defunkt.io/dotjs/ | |
| * 2) Install this into ~/.js/github.com.js | |
| * 3) Click on a line number in the editor to open the file at this position (e.g. to see more context) | |
| * 4) Alt+Click on a line number in the editor to edit the file at this position | |
| * | |
| * This script is based on @agnoster's idea: https://gist.github.com/3906361 | |
| */ | |
| function getBranch() { |
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
| #pragma once | |
| // Use this macro to localize strings in "common" code (code that is used in iOS and Javascript) | |
| #define AIMLocalizedString(string, description) string |
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 boto.emr | |
| from boto.s3.key import Key | |
| from boto.s3.connection import S3Connection | |
| aws_key = 'your-key' | |
| aws_secret = 'your-secret' | |
| bucket_name = 'your-bucket-name' | |
| result_file_name = 'your-result-file-path' | |
| s3_connection = S3Connection(aws_key, aws_secret, validate_certs=False) |
OlderNewer