I hereby claim:
- I am here on github.
- I am here (https://keybase.io/here) on keybase.
- I have a public key whose fingerprint is CF39 8F78 6AB6 508F B3AF D303 8FD2 C2F3 2ABC 208F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# trying to replicate and solve this situation: | |
# http://stackoverflow.com/questions/8515729/aborting-a-stash-pop-in-git/ | |
# tl;dr, if you didn't have any staged changes, this should work: | |
git diff --name-only --cached|xargs git checkout --ours HEAD | |
git ls-tree stash@{0}^3 --name-only|xargs rm | |
# If there were no untracked files introduced from the stash | |
# then the second command will fail with |
1noun | |
2verb | |
3noun | |
4verb | |
5pronoun | |
6adj | |
7adj | |
8noun | |
9noun | |
10verb |
The sketch: | |
A [1noun] enters a pet shop. | |
Mr. Praline: 'Ello, I wish to [2verb] a [3noun]. | |
(The owner does not [4verb].) | |
Mr. Praline: 'Ello, [5pronoun]? |
Working in 4.0 | |
functions.php: | |
// localize_script js object hack. | |
wp_register_script('gimme-objects', get_stylesheet_directory_uri() . '/gimme-objects.js' ); | |
wp_localize_script('gimme-objects', 'foo', array( 'l10n_print_after' => 'foo = {}' )); |
<?php | |
/* code for getting bearer key -- in case this breaks | |
// from https://dev.twitter.com/docs/auth/application-only-auth | |
// and http://stackoverflow.com/questions/15503710/twitter-application-only-authentication-php-oauth-error | |
$consumer_key = '...'; | |
$consumer_secret = '...'; | |
// step 1 |
'use strict'; | |
console.log('Loading function'); | |
let doc = require('dynamodb-doc'); | |
let dynamo = new doc.DynamoDB(); | |
/** | |
* Provide an event that contains the following keys: | |
* | |
* - operation: one of the operations in the switch statement below |