Skip to content

Instantly share code, notes, and snippets.

View beaulebens's full-sized avatar

Beau Lebens beaulebens

View GitHub Profile
<?php
// Quick utterance generator for Alexa Skills Kit.
// Define utterance templates below, then set up token variants as arrays below that.
// Tokenized utterances
$utterances = array(
'Nearest for the {closest} {car}',
'Nearest where the {closest} {car} is',
'Nearest where is the {closest} {car}',
"Nearest where's the {closest} {car}",

Keybase proof

I hereby claim:

  • I am beaulebens on github.
  • I am beaulebens (https://keybase.io/beaulebens) on keybase.
  • I have a public key whose fingerprint is A4DD A70D 2BC3 8B14 9AD3 65FE 305B D4BD EABB C1D7

To claim this, I am signing this object:

'editor':
'fontSize': 15
'showIndentGuide': true
'showInvisibles': true
'core':
'disabledPackages': [
'atom-lint'
]
'themes': [
'atom-dark-ui'
<?php
/*
Plugin Name: Keyring
Plugin URI: http://dentedreality.com.au/projects/wp-keyring/
Description: Keyring helps you manage your keys. It provides a generic, very hookable framework for connecting to remote systems and managing your access tokens, username/password combos etc for those services. On its own it doesn't do much, but it enables other plugins to do things that require authorization to act on your behalf.
Version: 1.6
Author: Beau Lebens
Author URI: http://dentedreality.com.au
*/
<?php
add_action( 'keyring_post_imported', function( $post_id, $service ) {
if ( 'twitter' === $service ) {
set_post_format( $post_id, 'status' );
}
}, 10, 2 );
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
// Minified version of https://github.com/placemarker/jQuery-MD5
(function($){function safe_add(x,y){var lsw=(x&65535)+(y&65535),msw=(x>>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&65535}function bit_rol(num,cnt){return num<<cnt|num>>>32-cnt}function md5_cmn(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b)}function md5_ff(a,b,c,d,x,s,t){return md5_cmn(b&c|~b&d,a,b,x,s,t)}function md5_gg(a,b,c,d,x,s,t){return md5_cmn(b&d|c&~d,a,b,x,s,t)}function md5_hh(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t)}function md5_ii(a,b,c,d,x,s,t){return md5_cmn(c^
(b|~d),a,b,x,s,t)}function binl_md5(x,len){x[len>>5]|=128<<len%32;x[(len+64>>>9<<4)+14]=len;var i,olda,oldb,oldc,oldd,a=1732584193,b=-271733879,c=-1732584194,d=271733878;for(i=0;i<x.length;i+=16){olda=a;oldb=b;oldc=c;oldd=d;a=md5_ff(a,b,c,d,x[i],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,