I hereby claim:
- I am markbiek on github.
- I am antelopelovefan (https://keybase.io/antelopelovefan) on keybase.
- I have a public key whose fingerprint is 27F1 D1A4 91D7 7E39 B9B3 9597 4501 79A1 C9C1 051F
To claim this, I am signing this object:
(function( $ ){ | |
$.fn.canvasAnimate = function(options) { | |
return this.each( function() { | |
Number.prototype.zeroPad = function() { | |
var i = this; | |
if(i < 10) { | |
return '0000'+i; | |
}else if(i >= 10 && i < 100) { | |
return '000'+i; | |
}else if(i >= 100 && i < 1000) { |
<canvas id="canvas" width="640" height="480"> | |
<p>Your browser doesn't support canvas.</p> | |
</canvas> |
Object.prototype.setPixel = function(point, rgba) { | |
if(!this.hasOwnProperty('data')) { | |
throw'This method only works with ImageData objects created with createImageData'; | |
} | |
var imageData = this; | |
if(typeof rgba == 'string') { | |
var useDefault = true; //If anything is wrong with the hex code, fall back to a default color | |
var matches; | |
/* | |
Fiddle: http://jsfiddle.net/SBp85/18/ | |
Markup: | |
<p><a href="#" id="button"><img src="http://placekitten.com/64/64" alt="Click" /></a></p> | |
<div id="console"></div> | |
| |
*/ |
if(!Object.hasOwnProperty('extend')) { | |
Object.prototype.extend = function(obj) { | |
for(var i in obj) { | |
if(obj.hasOwnProperty(i) && !this.hasOwnProperty(i)) { | |
this[i] = obj[i]; | |
} | |
} | |
}; | |
} |
Object.prototype.bsearch = function(i, min, max) { | |
//console.log('Finding ' + i + ' out of ' + this.length + ' items'); | |
if(max < min) { | |
return 0; | |
}else { | |
var mid = Math.floor((min + max) / 2); | |
//console.log('Midpoint of ' + min + '->' + max + ' is ' + mid); | |
if(this[mid] > i) { |
#!/bin/bash | |
if [ -f $1 ] | |
then | |
python -c "compile(open('$1').read(), '$1', 'exec')" | |
else | |
echo "The file $1 was not found." | |
exit 1 | |
fi |
### Keybase proof | |
I hereby claim: | |
* I am markbiek on github. | |
* I am antelopelovefan (https://keybase.io/antelopelovefan) on keybase. | |
* I have a public key whose fingerprint is E0CA 9E6A 5AE8 FD26 C8BA 58FB B196 5A58 A94D 9A8C | |
To claim this, I am signing this object: |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Collections.Concurrent; | |
using System.Threading; |
I hereby claim:
To claim this, I am signing this object: