I hereby claim:
- I am andyburke on github.
- I am andyburke (https://keybase.io/andyburke) on keybase.
- I have a public key whose fingerprint is 6362 988B 9F0F D59E 4937 BA38 839B 028C D976 364D
To claim this, I am signing this object:
| // This bit is important. It detects/adds XMLHttpRequest.sendAsBinary. Without this | |
| // you cannot send image data as part of a multipart/form-data encoded request from | |
| // Javascript. This implementation depends on Uint8Array, so if the browser doesn't | |
| // support either XMLHttpRequest.sendAsBinary or Uint8Array, then you will need to | |
| // find yet another way to implement this. (This is left as an exercise for the reader, | |
| // but if you do it, please let me know and I'll integrate it.) | |
| // from: http://stackoverflow.com/a/5303242/945521 | |
| if ( XMLHttpRequest.prototype.sendAsBinary === undefined ) { |
| /* | |
| You can now create a spinner using any of the variants below: | |
| $("#el").spin(); // Produces default Spinner using the text color of #el. | |
| $("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el. | |
| $("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color). | |
| $("#el").spin({ ... }); // Produces a Spinner using your custom settings. | |
| $("#el").spin(false); // Kills the spinner. |
| #! /bin/sh | |
| # RESOLVE and SET $ES_HOME | |
| SCRIPT="$0" | |
| # SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path. | |
| while [ -h "$SCRIPT" ] ; do | |
| ls=`ls -ld "$SCRIPT"` | |
| # Drop everything prior to -> |
| <script type="text/javascript"> | |
| emit.on( ‘foo’, function( event ) { | |
| console.log( ‘got a foo event from: ’ + event.emitTarget ); | |
| } ); | |
| </script> | |
| … | |
| <a data-emit="foo">emit foo</a> |
| <div class=”item-list”></div> | |
| … | |
| $( '.item-list' ).html( itemsHTML ); |
| <div class=”item-list” data-item-list></div> | |
| … | |
| $( ‘[data-item-list]’ ).html( itemsHTML ); |
| Verifying that +andyburke is my blockchain ID. https://onename.com/andyburke |
| #!/bin/bash | |
| echo "Updating server: ${HOSTNAME}" | |
| echo "" | |
| # pull latest image | |
| docker pull float/auth:${CODE_BRANCH} | |
| # get image id | |
| NEW_IMAGE_ID=$(docker images | grep -E "^float\/auth.*?${CODE_BRANCH}" | awk -e '{print $3}') |
| #!/bin/bash | |
| # see: http://stackoverflow.com/questions/3685970/check-if-an-array-contains-a-value | |
| elementIn () { | |
| local e | |
| for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done | |
| return 1 | |
| } | |
| if [ ! -f /data/dropbox/folder_list ] |
I hereby claim:
To claim this, I am signing this object: