Skip to content

Instantly share code, notes, and snippets.

View christopherdebeer's full-sized avatar

Christopher de Beer christopherdebeer

View GitHub Profile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"
>
<html lang="en">
<head>
<title>yUML Tests</title>
<script type="text/javascript" src="/sandbox/assets/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="/sandbox/assets/js/jquery.formLabels1.0.js"></script>
<script>
@christopherdebeer
christopherdebeer / Regex patterns
Created July 27, 2010 09:53
Some useful entity RegEx patterns
Some useful entity RegEx patterns
by Christopher de Beer
27 July 2010
They're not perfect,
i'll keep fixing up the leaks as I go. (next... adding lookarounds)
He'll, I'll ,She'd etc : ([a-zA-Z]+['’][a-z]{1,3})
@christopherdebeer
christopherdebeer / LICENSE.txt
Created June 1, 2011 13:16 — forked from jed/LICENSE.txt
convert RGB to HEX
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@christopherdebeer
christopherdebeer / LICENSE.txt
Created June 1, 2011 13:16 — forked from jed/LICENSE.txt
convert HEX to RGB
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@christopherdebeer
christopherdebeer / LICENSE.txt
Created June 1, 2011 13:40 — forked from 140bytes/LICENSE.txt
RGB to Luminosity (140byt.es)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@christopherdebeer
christopherdebeer / annotated.js
Created June 9, 2011 10:32
LZW compression and decompression by @_sebastienp (not me)
/*
Copyright (c) 2011 Sebastien P.
http://twitter.com/_sebastienp
MIT licensed.
---
@christopherdebeer
christopherdebeer / modules.md
Created August 5, 2011 13:26
Node.js modules to remember

Node.js modules to remember

  • Optimist - Light-weight option parsing for node.js
  • http-server - a simple zero-configuration command-line http server
  • prompt - A beautiful command-line prompt for node.js
  • git - javascript git implementation
  • vows & assert(core) - for writing unit tests
  • everyauth - node.js auth package (password, facebook, & more) for Connect and Express apps
  • rocket - The rapid development framework for node.js/couchDB/mongoDB web apps
/*
* jQuery Raptorize Plugin 1.0
* www.ZURB.com/playground
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function($) {
var a=document.getElementsByTagName('head')[0],b=document.createElement('script');
b.type='text/javascript';
b.src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?'+Math.floor(Math.random()*99999);
a.appendChild(b);
var c=document.getElementsByTagName('head')[0],d=document.createElement('script');
d.type='text/javascript';
d.src='https://raw.github.com/gist/1141739/b5ae48df4eb615f0d523836c6d140f8660f2d450/jquery.raptorize.1.0.js?'+Math.floor(Math.random()*99999);
c.appendChild(d);
@christopherdebeer
christopherdebeer / tellmeaboutit.js
Created August 18, 2011 17:05
tell me about it
function loadScript(url, callback){
var script = document.createElement("script")
script.type = "text/javascript";
if (script.readyState){ //IE
script.onreadystatechange = function(){
if (script.readyState == "loaded" ||
script.readyState == "complete"){
script.onreadystatechange = null;