Create a new note by current cursor position:
double click
I hereby claim:
To claim this, I am signing this object:
jest.mock('react-native-firebase', () => { | |
return { | |
admob: jest.fn(() => { | |
return { | |
onNotification: jest.fn(), | |
onNotificationDisplayed: jest.fn() | |
} | |
}), | |
analytics: jest.fn(() => { | |
return { |
# dump your db, note: the heroku command failed for me without the --format=c flag being set. | |
pg_dump --no-acl --no-owner --format=c database_name > db.dump | |
# in my case I have a remote, staging, I want to upload to | |
heroku pg:backups restore 'url_for_db.dump' DATABASE_URL -r staging |
extension Int { | |
public func suffix() -> String { | |
let absSelf = abs(self) | |
switch (absSelf % 100) { | |
case 11...13: | |
return "th" | |
default: |
# 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' | |
} |
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 | |
}); |
<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> |
+ (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]; | |
/* |