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
command line fu from @fpolgardy | |
find . -name '*.sass' | |
and . . . | |
find . -name '*.sass' | xargs grep colors |
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
$(function() { | |
var ghost = 'face'; | |
function blah() { | |
// do shit . . . | |
} | |
}); |
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
var mthdInvctnPtrn = { | |
init: function() { | |
// ^oh! | |
}, | |
meth: function() {} | |
} |
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
# reset the index to the desired tree | |
git reset --hard 56e05fced (the sha you `want to go to there` to) | |
# move the branch pointer back to the previous HEAD | |
git reset --soft HEAD@{1} | |
git commit -m "Revert to 56e05fced" |
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
// Put the following in a file called UITableView+PreventEmptyCells.h | |
#import <UIKit/UIKit.h> | |
@interface UITableView (PreventEmptyCells) | |
+ (void)preventEmptyRows:(UITableView *)tableView; | |
@end |
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
+ (void)blurbWasLiked:(PFObject *)blurb byUser:(PFUser *)liker | |
{ | |
/* | |
Query for blurb's user | |
*/ | |
PFQuery *userQuery=[PFUser query]; | |
PFUser *blurbUser = [blurb objectForKey:@"user"]; | |
[userQuery whereKey:@"objectId" equalTo:blurbUser.objectId]; | |
/* |
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
<script type="text/javascript" src="https://raw.github.com/edits-by-us/client/master/edits-by-us.min.js" id="js-edu-script-tag" data-selectors="#article-body" data-token="12c687b0-2ef1-0132-e700-20c9d07cae7b"></script> |
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
var currentDate = new Date(); | |
futureDate = new Date("March 17, 2015 21:00:00"); // page says launching from March 9th | |
var diff = futureDate.getTime() / 1000 - currentDate.getTime() / 1000; | |
jQuery('#basketballCountdownClock').FlipClock(diff, { | |
clockFace: 'DailyCounter', | |
countdown: true | |
}); |
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
# api docs say to submit . . . | |
{ | |
'user_invitation_token' : 'xyz###', | |
'first_name' : 'John', | |
'last_name' : 'Appleseed', | |
'email' : '[email protected]', | |
'username' : 'john', | |
'password' : 'foobar', | |
'password_confirmation' : 'foobar' | |
} |
OlderNewer