Skip to content

Instantly share code, notes, and snippets.

Darren Waddell fakedarren

Block or report user

Report or block fakedarren

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stats

Some stats from

I've shared this because it gives an unfiltered insight into what devices and browsers are used by Momentum's demographic. I would assume that this matches the demographic a lot of startups also target. That's an assumption on my part though.

Uses Node, Express, Handlebars for backend. jQuery and Google Maps for front end. MongoDB for database (and crucially geospatial search). Cloudflare and Heroku for hosting / scaling.


View gist:28953b01e455078fb4f8

I feel the need to have a little rant about MooTools and ES7 and the whole 'Array.contains' hoo-hah.

When MooTools came out in 2006, the most popular framework was Prototype. As the name suggests, it extended prototypes, as did MooTools. People still referred to making websites with JavaScript as 'DHTML', there was no trim method on strings, there wasn't even a forEach method on arrays. JavaScript was a crippled language. IE6 ruled the waves.

MooTools, Prototype, Dojo, Base2 - they made the language usable, even fun, to work with. By using an incredible feature of JavaScript, prototypical inheritance, we were able to add features to the language that made it palatable.

Be it simple methods like number.toInt, string.trim, array.forEach, or familiar programming constructs such as Class, MooTools and its ilk took JavaScript from something impossible to work with to something that you could properly use to build awesome sites, and even apps - Microsoft, IE and desktop ruled everything, and the concept of a 'we

fakedarren / regex.js
Created Mar 27, 2013
Just a few regexs I wrote / stole when creating a wysiwyg text editor a few years ago. God give me strength. Related:
View regex.js
cleanHTML: function() {
var html = this.textarea.value;
// Remove double new lines
html = html.replace(/\n\n+/g, "\n");
// Stupid apple-style-spans etc
View gist:4968358
$ packager build Core/* \
-blocks 1.2compat 1.3compat '!ES5' '!ES5-bind' \
IE ltIE9 ltIE8 firefox ltFF4 > core.js
fakedarren /
Last active Dec 11, 2015
A few links to some of the things I've done
fakedarren / gist:3980110
Created Oct 30, 2012
Kill cookie snippet
View gist:3980110
$$('#cookiePolicy button[type=submit]').addEvent('click', function(evt){
new Cookie.write('THE_compliance', true, {
path: '/',
duration: 90
View example.sql
Creates default 'My Pages' page texts.
- "My Account - Edit Bottom"
- "My Account - Edit Header"
- "My Comments - Empty"
- "My Comments - Header"
- "My Discussions - Empty"
fakedarren / moofx.js
Created Sep 2, 2012
MooFx - to be used with other frameworks
View moofx.js
(function(modules) {
var cache = {}, require = function(id) {
var module = cache[id];
if (!module) {
module = cache[id] = {
exports: {}
var exports = module.exports;
modules[id].call(exports, require, module, exports, window);
fakedarren / jira-sucks.css
Created Apr 9, 2012
Make Jira less sucky
View jira-sucks.css
a { color: #325c99 !important; }
table.header { display: none !important; } td {
background: #FFF !important;
height: 30px !important;
body > table > tbody > tr > td:nth-child(1) {
background: #fff !important;
body > table [bgcolor=f0f0f0] table[width="200"] > tbody > tr > td > table[width="100%"]:nth-child(1) {
You can’t perform that action at this time.