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 | |
# | |
# This script deletes a feature branch you've been | |
# working on, assuming that it's been merged as part | |
# of a Pull Request, and pulls it into your master | |
# branch. | |
# | |
# You need a typical setup, and a reference to the | |
# forked repo, called `upstream`. |
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
# | |
# If, for example, you've accidentally made some commits to master | |
# that should be on a feature branch, this set of commands will | |
# move those commits over to a feature branch and reset master to | |
# where it should be both locally and on the remote. | |
# | |
# References: | |
# | |
# - http://stackoverflow.com/questions/1628563/move-recent-commit-to-a-new-branch | |
# - http://stackoverflow.com/questions/1377845/git-reset-hard-and-a-remote-repository |
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
# Link dotfiles | |
dropboxPath = File.expand_path(File.dirname(__FILE__)) | |
targetPath = File.expand_path('~') | |
files = 0 | |
Dir.foreach(dropboxPath) do |file| | |
if (file != '.') && (file != '..') && (file != File.basename(__FILE__)) | |
%x[ln -sF #{dropboxPath}/#{file} #{targetPath}/#{file}] | |
files += 1 | |
end |
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
/* | |
* Wrap up the Backbone application in a simple interface | |
*/ | |
// Using Jquery... | |
(function ($) { | |
// Create application | |
var MyApp = (function () { |
NewerOlder