Skip to content

Instantly share code, notes, and snippets.

// Load this file for the english version
var i18n_strings = {
"{0} is a great friend of mine": "{0} is a great friend of mine"
"some_key": "A string of text"
};
var i18n_strings = {
"{0} is a great friend of mine": "{0} is a great friend of mine"
"some_key": "A string of text"
};
@quickredfox
quickredfox / sass-test-elseif-deep.scss
Created August 2, 2011 17:38
Using Sass 3.2.0.alpha.11 (Bleeding Edge) on MacBookPro3,1 with Snow Leopard 10.6.8
$a: #f00;
$b: #00F;
@if $a == a {}
@else{
@if $a == b {}
@else{
@if $a == c {}
@else{
@if $a == d {}
@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;
@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;
@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
/*
$.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
require.extensions[".json"] = function (module, filename) {
module.exports = JSON.parse(require("fs").readFileSync(filename, "utf8"))
}
@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"