In a terminal, run ./base64enc.sh /path/to/file.png
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element.implement({ | |
removeTag: function(){ | |
var childNodes = this.childNodes; | |
for (var i = childNodes.length - 1; i >= 0; i--) { | |
if (childNodes[i].nodeType == document.TEXT_NODE) { | |
this.appendText(childNodes[i].nodeValue, 'after'); | |
} else { | |
document.id(childNodes[i]).inject(this, 'after'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# THIS DOESN'T WORK | |
Atom: | |
columns: | |
title: { type: string(255) } | |
News: | |
columns: | |
article: { type: text } | |
inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ketchup.validation( | |
'ukpostcode', | |
'Please enter a valid UK postcode', | |
function(form, el, value){ | |
var tidyValue = value.replace(/\s+/g, ''); | |
var pattern = /^(GIR0AA)|((([A-PR-UWYZ][0-9][0-9]?)|(([A-PR-UWYZ][A-HK-Y][0-9][0-9]?)|(([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))))[0-9][ABD-HJLNP-UW-Z]{2})$/i; | |
return pattern.test(tidyValue); | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Shorthand box model value sniffer | |
* | |
* @package SkylabCodeSniffer | |
* @author Jaik Dean | |
**/ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Subpixel rounding annoyance</title> | |
<style> | |
.container { | |
position: absolute; | |
top: 20.5px; | |
left: 20.5px; | |
overflow: hidden; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$foo = 'set globally'; | |
function testGlobals() | |
{ | |
$foo = 'set locally'; | |
global $foo; | |
} |
I hereby claim:
- I am jaikdean on github.
- I am jaikdean (https://keybase.io/jaikdean) on keybase.
- I have a public key ASAjfMpHHVIFJhkGdVH83X5uDttjAXF8-Y_O1ir2mS10Tgo
To claim this, I am signing this object: