Skip to content

Instantly share code, notes, and snippets.

###
This file changes for every book, could be stored in database
###
BOOK.THEME = 1
BOOK.SECTION = 1
###
Here we declare the image files for the toy chest.
###
###
This file changes for every book, could be stored in database
###
BOOK.THEME = 1
BOOK.SECTION = 3
###
Here we declare the image files for the toy chest.
###
###
This file changes for every book, could be stored in database
###
BOOK.THEME = 1
BOOK.SECTION = 4
###
Here we declare the image files for the toy chest.
###
{
hose_name => [
{
title: 'Atlanta twitter content search',
entries_samples: [1,...],
polls_samples: [1,...],
entries_total : 345211,
polls_total : 44556
},
{
@quickredfox
quickredfox / run.js
Created March 31, 2011 01:55
Runs a bunch of connect apps according to some private specs
var fs = require('fs');
var connect = require('connect');
var VHOSTS_DIR = '/srv/connect/apps';
var VHOSTS = {};
var hostsDirectory = function( req, res) {
res.writeHead( 200, {"Content-Type":"text/html"} );
names = [];
for( var vhost in VHOSTS ){
@quickredfox
quickredfox / connector.js
Created April 3, 2011 15:05
Initializes a bunch of connect apps (vhost server)
/*
Require necessary modules
*/
var FS,RootServer,VHOSTS,VHOSTS_DIRECTORY,connect;
FS = require('fs');
connect = require('connect');
/*
Declare some "constants"
require.extensions[".json"] = function (module, filename) {
module.exports = JSON.parse(require("fs").readFileSync(filename, "utf8"))
}
/*
$.ajax Bitchslap!
=================
$.ajax Bitchslap! $.ajax is a bein' a bitch and I promise I'll slap it!
Sometimes you need to code and move on until the world fixes itself or declares it wont fix itself.
This is one example of temporarily working around that.
It says in the jquery documentation that $.ajax returns a promise, but that appears to not
@quickredfox
quickredfox / @chriseppstein
Created July 22, 2011 23:51
output from compass compile --force --time on MacOs X 10.6.8 Using GPL'd Ext 4.0.2a
remove .sass-cache/
remove ../css/custom.css
remove ../css/ext-all-access.css
remove ../css/ext-all-gray.css
remove ../css/ext-all-scoped.css
remove ../css/ext-all.css
remove ../css/ext-ie-scoped.css
remove ../css/ext-ie.css
remove ../css/ext-sandbox.css
remove ../css/ext-standard-scoped.css
@import 'compass';
$include-default: true !default;
$include-default-uis: true !default;
@import 'ext4/default/functions';
@import 'ext4/default/variables';
@mixin background-gradient($bg-color, $type: $base-gradient, $direction: top) {
background-image: none;