Skip to content

Instantly share code, notes, and snippets.

View rayners's full-sized avatar

David Raynes rayners

  • Baltimore, MD
  • 01:08 (UTC -04:00)
View GitHub Profile
@subelsky
subelsky / move_github_repos.sh
Created April 10, 2012 16:30
How to archive old github private projects on Dropbox
# http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively/1961515#1961515
export REPONAME=????
take ~/Dropbox/git/$REPONAME.git
git init --bare
cd ~/code/$REPONAME
git remote rm origin
git remote add origin ~/Dropbox/git/$REPONAME.git
git push -u origin master
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@trey
trey / rwd.css
Created January 26, 2012 20:14
Bootstrap's RWD breakpoints
/* http://twitter.github.com/bootstrap/scaffolding.html#responsive */
/* Landscape phones and down */
@media (max-width: 480px) { ... }
/* Landscape phone to portrait tablet */
@media (max-width: 768px) { ... }
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 940px) { ... }
@tie-rack
tie-rack / xkcd.com.js
Created March 28, 2011 19:13
dotjs for adding the title text of XKCD comics on the page (no more tooltip for me!)
var comic = $("div.s img[title]");
var titleP = $("<p></p>");
titleP.css({"font-variant": "normal",
"border": "1px solid yellow",
"padding": "1em",
"background-color": "#FFFFCC"});
titleP.text(comic.attr("title"));
comic.after(titleP);