Public Gists by subtleGradient

Gravatar
Fri Nov 13 21:49:28 -0800 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Gravatar
Thu Nov 05 08:16:48 -0800 2009
1
2
3
// Basic closure, assumes window === this
(function(){
// require stuff here
gist: 222350 delayUnless — fire an event...
Gravatar
Fri Oct 30 06:55:14 -0700 2009
1
2
3
// -*- Mode: MooTools Javascript; tab-width: 4; -*-
/*
---
gist: 205297 String.bind lets you bind t...
Gravatar
Thu Oct 08 12:45:21 -0700 2009
1
2
3
// -*- Mode: Javascript; tab-width: 4; -*-
/*
---
gist: 204504 MooTools Logo in SVG
Gravatar
Wed Oct 07 15:20:31 -0700 2009
1
2
3
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="MooTools_Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
Gravatar
Wed Oct 07 09:40:49 -0700 2009
1
2
3
Function.safeTry = (function(){
 
var currentHandler;
gist: 192818 Number.prototype.divideToArray
Gravatar
Thu Sep 24 08:55:11 -0700 2009
1
2
3
Number.prototype.divideToArray = function(divideBy,forceInt){
var array = [];
var remainder = this % divideBy;
gist: 174786 Slow down functions that ge...
Gravatar
Tue Aug 25 09:14:37 -0700 2009
1
2
3
/*
JavaScript Function.prototype.remember
Copyright (c) 2009 Thomas Aylott (SubtleGradient.com)
gist: 165830 Refresh browsers from the s...
Gravatar
Tue Aug 11 06:51:56 -0700 2009
1
2
3
### Created by Thomas Aylott - http://subtleGradient.com
# Requires you to have Parallels or VMWare with Coherence or whatever
# Rename your explorer.app (or whatever) to "Internet Explorer 6.app"
gist: 158243 Make position:fixed work in...
Gravatar
Wed Jul 29 09:17:34 -0700 2009
1
2
3
/*Make position:fixed work in IE6!*/
 
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0px;}
Gravatar
Thu Jul 23 08:02:44 -0700 2009
1
2
3
// SubtleHoverInspect Bookmarklet
// subtlehoverinspect.bookmarklet.js
/*
gist: 136200 MacRabbit Espresso Feature ...
Gravatar
Thu Jun 25 15:22:37 -0700 2009
1
2
3
## document the selectors api
EG: `:capture(name)`, `:capture(itemizer-firstused)`, `:has-next()`, `[text == $name.text]` etc
 
Gravatar
Mon Jun 22 11:36:34 -0700 2009
1
2
3
(function(write, wrapper, slice, fragment){
 
document.write = function(){
Gravatar
Mon Jun 22 09:50:49 -0700 2009
1
2
3
var btn = new Element('button',{html:'Run'}).addEvent('click', Context('dynamic').handleWith('handleClick'));
 
Ccontext(1).addHandler('handleClick', function(){alert(1);});
Gravatar
Mon Jun 22 09:41:24 -0700 2009
1
2
3
// # -- sequential speccing
 
var group1 = spec.group('description');
gist: 133810 JavaScript Process API prop...
Gravatar
Sun Jun 21 22:02:16 -0700 2009
1
2
3
Process API
===========
 
gist: 133677 document.write replacement ...
Gravatar
Sun Jun 21 15:07:19 -0700 2009
1
2
3
/*
---
source: http://gist.github.com/133677
gist: 133592 quick jekyll blog post script
Gravatar
Sun Jun 21 10:53:13 -0700 2009
1
2
3
The `@ROOT` path in this script is set to the present working directory. My personal version is set to the full path to my jekyll `_posts` directory.
 
I have it pushing the new blog post to an `origin` remote in the `master` branch. You might want to change that to a `gh-pages` branch instead.
Gravatar
Sat Jun 06 20:35:25 -0700 2009
1
2
3
{
"Function":"$",
"description":"The dollar function has a dual purpose: Getting the element by its id, and making an element in Internet Explorer \"grab\" all the Element methods.",
Gravatar
Fri May 22 14:15:26 -0700 2009
1
2
3
// -*- Mode: MooTools Javascript; tab-width: 4; -*-
// Proposed syntax. Not fully functional atm.