Jason Rudolph jasonrudolph

View github-api-example.md
View 00-about-search-api-examples.md
View gist:6057563

James Sugrue [asked][1], "@GitHubAPI is there a way to find the number of stars for a given repository?"

Example

$ curl -ni "https://api.github.com/search/repositories?q=more+useful+keyboard" -H 'Accept: application/vnd.github.preview'
{
View request.sh
1 2 3
# Search for code containing the term "_cache" in repositories owned by @jasonrudolph
curl -G -H "Accept: application/vnd.github.preview.text-match" \
https://api.github.com/search/code --data-urlencode "q=@jasonrudolph _cache"
View 00-about.md
View snippet.rb
1 2 3 4 5 6 7 8 9 10
# A Ruby snippet posted as a comment on http://vitobotta.com/applying-bitwise-operations-to-rspec-testing/
 
 
# [ activable?, persisted?, new?, suspended? ]
# =============================================
combinations = [
[ false, false, false, false ],
[ false, false, true, false ],
[ false, false, false, true ],
[ false, true, false, false ],
View mongo-console
1 2 3 4 5 6 7 8 9 10
# Assuming you're familiar with specifying query and sort options
# via the MongoDB console as shown here, you can specify these same
# options via the MongoHQ RESTful API using the approach shown in the
# file below.
 
$ mongo staff.mongohq.com:10095/one-rep-max -u REDACTED -p
MongoDB shell version: 2.0.4
Enter password:
connecting to: staff.mongohq.com:10095/one-rep-max
> use one-rep-max;
View README.md
View git-branches-by-commit-date.sh
1 2
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
View gist:1732424
1
find . -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"
Something went wrong with that request. Please try again.