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:
I hereby claim:
To claim this, I am signing this object:
<?php | |
$foo = 'set globally'; | |
function testGlobals() | |
{ | |
$foo = 'set locally'; | |
global $foo; | |
} |
<!doctype html> | |
<html> | |
<head> | |
<title>Subpixel rounding annoyance</title> | |
<style> | |
.container { | |
position: absolute; | |
top: 20.5px; | |
left: 20.5px; | |
overflow: hidden; |
<?php | |
/** | |
* Shorthand box model value sniffer | |
* | |
* @package SkylabCodeSniffer | |
* @author Jaik Dean | |
**/ | |
/** |
$.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 DOESN'T WORK | |
Atom: | |
columns: | |
title: { type: string(255) } | |
News: | |
columns: | |
article: { type: text } | |
inheritance: |
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'); | |
} |