I hereby claim:
- I am noeljackson on github.
- I am noeljackson (https://keybase.io/noeljackson) on keybase.
- I have a public key ASCz6iZD2oBkZ3dbcCUXv7LvTqpyOHjp1RasV3mDWqFckQo
To claim this, I am signing this object:
| $( this ).imagesLoaded(function() { | |
| $container = $( '#container' ); | |
| function gallery_item_width() { | |
| width = Math.floor( ($('#primary').width()) / 3 ); | |
| $( '#container .item' ).width( width + 'px' ); | |
| } | |
| $(window).smartresize( gallery_item_width() ); |
| git clone git://git.libusb.org/libusb.git | |
| ./autogen.sh | |
| ./configure | |
| make | |
| make install | |
| # pkg-config --libs libusb-1.0 | |
| export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" |
| var url = window.location.hash.toString(); | |
| var anchor = '#' + url.split('#')[1]; | |
| //if a hash is in a url, show that div | |
| if (url.match('#')) $(anchor).show(); | |
| // if the hash changes, show that div | |
| $(window).bind('hashchange', function() { | |
| $(anchor).show(); |
| # Ignore everything in the root except the "wp-content" directory. | |
| /* | |
| !.gitignore | |
| !wp-content/ | |
| # Ignore everything in the "wp-content" directory, except the "plugins" | |
| # and "themes" directories. | |
| wp-content/* | |
| !wp-content/plugins/ | |
| !wp-content/themes/ |
| #from https://www.linux.com/learn/how-use-docker-machine-create-swarm-cluster | |
| #export digital ocean token | |
| export DO_TOKEN="abcdefghijklmnopqrstuvwxyz" | |
| #make keystore | |
| docker-machine create -d digitalocean \ | |
| -digitalocean-access-token ${DO_TOKEN} \ | |
| --digitalocean-region "nyc1" \ | |
| --digitalocean-image="ubuntu-14-04-x64" \ | |
| --digitalocean-size "512mb" \ |
| <?php | |
| $email = "youremail@example.com"; | |
| $apikey = yourkey; | |
| $zoneid = yourzone; | |
| $ch = curl_init( 'https://api.cloudflare.com/client/v4/zones/' . $zoneid . '/purge_cache' ); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array('purge_everything' => true)) ); | |
| curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, array( |
| #!/bin/bash | |
| CFKEY=apikeygoeshere | |
| CFUSER=you@example.org | |
| CFDOMAIN=yourdomain.com | |
| CFZONE=$(curl -X GET "https://api.cloudflare.com/client/v4/zones?name=$CFDOMAIN&status=active&page=1&per_page=20&order=status&direction=desc&match=all" \ | |
| -H "X-Auth-Email: $CFUSER" \ | |
| -H "X-Auth-Key: $CFKEY" \ | |
| -H "Content-Type: application/json" \ | |
| | grep -Eo '"result\"\:\[\{"id":"([^"]+)"' \ |
| #!/bin/bash | |
| # Swap out docker-compose for docker run if you like. | |
| docker-compose -f docker-compose.yml up -d | |
| docker-compose ps | |
| SECONDS=0; \ | |
| end="$((SECONDS+240))"; \ | |
| while true; do \ | |
| [[ $(docker-compose -f docker-compose.yml logs --tail=5 neo4j|grep "Remote interface available") ]] \ | |
| && echo "Connected successfully to database." && break; \ | |
| [[ "${SECONDS}" -ge "${end}" ]] && echo "Can't connect to database.'" && exit 1; \ |
| React.createClass({ | |
| // ... | |
| onClicked() { | |
| // Array of debounced click events | |
| this.debouncedClickEvents = this.debouncedClickEvents || []; | |
| // Each click we store a debounce (a future execution scheduled in 250 milliseconds) | |
| const callback = _.debounce(_ => { | |
| // YOUR ON CLICKED CODE |
I hereby claim:
To claim this, I am signing this object: