Skip to content

Instantly share code, notes, and snippets.

@dougnukem
dougnukem / facebook_msg_webhook_inconsistency.md
Created May 18, 2016 03:36
Facebook Messenger Webhook Payload inconsistency

Facebook Messenger Webhook Payload inconsistency

  • Facebook Messenger Webhook Docs: describes the Entry[] payload as having an ID field that is a Number, but it appears that occasionally it'll be sent as a quoted string?
    • I'd expect ID to be consistent one way or the other.
 {
     "object": "page",
     "entry": [{
         "id": "126782477734654",

Keybase proof

I hereby claim:

  • I am dougnukem on github.
  • I am dougnukem (https://keybase.io/dougnukem) on keybase.
  • I have a public key whose fingerprint is 5612 B839 FC65 24B5 A87B 99F5 0ED4 F39E A73F 5091

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dougnukem
dougnukem / calysto_processing_example.ipynb
Last active November 3, 2015 22:05
calysto_processing_example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
I/InputReader( 609): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.521 ] when=5830381807000
I/InputDispatcher( 609): Delivering touch to: action: 0x0
I/InputDispatcher( 609): Delivering touch to: action: 0x0
D/lights ( 609): button : 1 +
D/lights ( 609): button : 1 -
I/InputReader( 609): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=5830469095000
I/InputDispatcher( 609): Delivering touch to: action: 0x1
I/CordovaLog( 7112): Changing log level to DEBUG(3)
I/CordovaLog( 7112): Found start page location: index.html
D/Whitelist( 7112): Unlimited access to network resources
D/CordovaActivity( 7112): CordovaActivity.onCreate()
W/ActivityManager( 609): Permission Denial: getCurrentUser() from pid=7112, uid=10070 requires android.permission.INTERACT_ACROSS_USERS
I/dalvikvm( 7112): Could not find method org.apache.cordova.CordovaWebView.setWebContentsDebuggingEnabled, referenced from method org.apache.cordova.CordovaWebView.setup
W/dalvikvm( 7112): VFY: unable to resolve static method 14309: Lorg/apache/cordova/CordovaWebView;.setWebContentsDebuggingEnabled (Z)V
D/dalvikvm( 7112): VFY: replacing opcode 0x71 at 0x00be
I/webclipboard( 7112): clipservice: android.sec.clipboard.ClipboardExManager@42b3c5e8
D/JSENGINE( 7112): qualcomm.jsengine.version:C.2-patch36-git:a745801
@dougnukem
dougnukem / gist:8608131
Created January 24, 2014 22:31
cleanup actionscript line endings from Flash Professional CS6
#!/bin/bash
CARRIAGE_RETURN=$'\r'
LINE_FEED=$'\n'
find . -name "*.as" | xargs grep -l $CARRIAGE_RETURN | xargs -n 1 sed -i "" 's/'$CARRIAGE_RETURN'/\'$'\n/g'
[@ddaniels-mbp:~/Desktop]$ /usr/local/bin/swfdump testExportSound.swf -D | more
[HEADER] File version: 15
[HEADER] File is zlib compressed. Ratio: 96%
[HEADER] File size: 67242
[HEADER] Frame rate: 24.000000
[HEADER] Frame count: 1
[HEADER] Movie width: 550.00
[HEADER] Movie height: 400.00
[045] 4 FILEATTRIBUTES as3 symbolclass
[04d] 1296 METADATA
@dougnukem
dougnukem / config.js
Last active August 24, 2017 01:56
Ghost config.js for Heroku
// # Ghost Configuration
// Setup your Ghost install for various environments
var path = require('path'),
url = require('url'),
config;
config = {
// ### Development **(default)**
development: {
@dougnukem
dougnukem / 0_reuse_code.js
Created October 8, 2013 18:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console