Skip to content

Instantly share code, notes, and snippets.

@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 / 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 {}
var i18n_strings = {
"{0} is a great friend of mine": "{0} is a great friend of mine"
"some_key": "A string of text"
};
// 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"
};
@quickredfox
quickredfox / bootstraped-tumblr-theme.html
Created November 17, 2011 23:16
bootstrap tumblr theme for quickredthought.tumblr.com
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{Title}</title>
<link rel='icon' href='{Favicon}'>
<link rel='shortcut icon' href='{Favicon}'>
<link rel='alternate' type='application/rss+xml' href='{RSS}'>
<meta name='description' content='{MetaDescription}'>
<meta name='color:Link' content='#6699cc'>
@quickredfox
quickredfox / mentions.json
Created January 25, 2012 15:19
/bad-ass-coffee-co/entries/mentions.json
{
"hits": [],
"total_pages": 3,
"total": 72,
"count": 25,
"entries": [{
"mention_in_reply_to_screen_name": "BadAssCoffeeRC",
"fetcher_type": "TwitterApiMention",
"pid": "mentions-twitter:3824990225",
"created_at": 1327367066,
@quickredfox
quickredfox / cheery.js
Created February 10, 2012 23:20
Problem I cannot solve, should be simple math for someone...
function oscillator(low, high, inc) {
// basic test for illegal parameters
if (low > high || inc < 0 || 2 * (high - low) < inc)
return function() { return NaN; };
var curr = low;
return function() {
var ret = curr;
curr += inc;
@quickredfox
quickredfox / example.js
Created February 23, 2012 15:17
JSON.lookup() # find things in JSON collections
var json;
json = [
{
foo: {
bar: ['ka', 'boom']
}
}, {
foo: {
bar: ['sna', 'fu']
@quickredfox
quickredfox / dirty-sandboxing.js
Created March 16, 2012 17:31
dirty sandboxing
var callForJS = $.ajax( {
complete: function( jqXhr ){
var unsafeResponse = jqXhr.responseText
, empty = {};
new Function( '', jqXhr.responseText ).call( empty ) // empty object as scope
}
} );
// Safer, if you want to restrict access to some globals