This is just stuff that I have put down that I find I use a lot of the time for my own reference.
$ git pull
.fa-bounce { | |
display: inline-block; | |
position: relative; | |
-moz-animation: bounce 1s infinite linear; | |
-o-animation: bounce 1s infinite linear; | |
-webkit-animation: bounce 1s infinite linear; | |
animation: bounce 1s infinite linear; | |
} | |
@-webkit-keyframes bounce { |
function randomDate(start, end) { | |
return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime())) | |
} | |
console.log(randomDate(new Date(2012, 0, 1), new Date())) |
/** | |
* jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!) | |
* Common usage: wipe images (left and right to show the previous or next image) | |
* | |
* @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de) | |
* @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems) | |
* @version 1.1 (1st September 2010) - support wipe up and wipe down | |
* @version 1.0 (15th July 2010) | |
*/ | |
(function($) { |
#!/usr/bin/env python | |
""" | |
Update Cloudflare zone entry to current external IP. | |
Works great with servers on changing IPs or AWS spot instances. | |
Usage: | |
python cloudflare_update.py subdomain |
This is a demonstration of a bi-directional hierarchical sankey diagram produced in javascript, html and css using d3. (Refresh page to generate new random data)
Sankey diagrams represent flows between nodes by varying the thickness of the connecting links.
This diagram was based off of Mike Bostock's sankey diagram, but additionally incorporates bi-directionality into the flow and caters for hierarchical relationships between nodes to allow drill down into the data.
All javascript code to generate the diagram markup is contained in the app.js
file, but the underlying calculations are performed using a custom plugin: bihisankey.js.
This version addresses the issue with double clicking. Demo: http://bl.ocks.org/emoruzzi/6f8140c4d903e64ae35dce0c971e488f