- Go to RGB Color Now
- Already implemented; just basic RGB functionality
- Fade to RGB Color
- Can be implemented; needs fading logic
- Fade to HSB Color
- Can be implemented; needs fading logic and HSB translation
- Fade to Random RGB Color
- Can be implemented; needs fading logic
- Fade to Random HSB Color
- Can be implemented; needs fading logic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var spawn = require( "child_process" ).spawn; | |
var path = "/Users/scottgonzalez/Projects/jquery-release"; | |
var committish = "master"; | |
function getLog( callback ) { | |
var stdout = ""; | |
var stderr = ""; | |
var child = spawn( "git", [ "log", "--format=%s", committish ], { cwd: path } ); | |
var hadError = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Web Forms 0.4.0 - jQuery plugin | |
* | |
* Copyright (c) 2007 - 2008 Scott Gonzalez | |
* | |
* Dual licensed under the MIT and GPL licenses: | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.gnu.org/licenses/gpl.html | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function element(value, context) { | |
var ret = $([]); // $(context) ? | |
if (value.jquery) { | |
ret = value; | |
} else if (value == 'parent') { | |
ret = $(context).parent(); | |
} else if (value == 'clone') { | |
ret = $(context).clone().removeAttr('id'); | |
} else if (value == 'window') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"), | |
querystring = require("querystring"), | |
sys = require("sys"); | |
var channel = "http://chat.nodejitsu.com/chat", | |
speed = 5000, | |
spammers = 10; | |
for (var i = 0; i < spammers; i++ ) { | |
setTimeout(startSpamming, (speed / spammers) * i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var sys = require("sys"), | |
fs = require("fs"), | |
chat = require('../lib/server'), | |
router = require("../lib/router"); | |
// create chat server | |
var chatServer = chat.createServer(); | |
chatServer.listen(8001); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'); | |
["sha1", "md5", "sha256", "sha512", "ripemd160"].forEach(function(algo) { | |
exports[algo] = function(data, salt) { | |
return (typeof salt != 'undefined' ? | |
crypto.createHmac(algo, salt) : | |
crypto.createHash(algo) | |
).update(data).digest("hex"); | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var initSource = $.ui.autocomplete.prototype._initSource; | |
$.ui.autocomplete.prototype._initSource = function() { | |
if ( typeof this.options.source === "string" && this.options.cache ) { | |
var self = this, | |
cache = {}; | |
this.source = function( request, response ) { | |
var term = request.term; | |
if ( cache[ term ] ) { | |
response( cache[ term ] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.widget( "ui.autocomplete", $.ui.autocomplete, { | |
_suggest: function( items ) { | |
var menu = this.menu.element, | |
width = menu.width(), | |
height = menu.height(); | |
this._super( "_suggest", items ); | |
var newWidth = menu.width(), | |
newHeight = menu.height(); | |
menu.css({ | |
width: width, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.event.special.hijax = { | |
setup: function() { | |
$.event.add( this, "click.specialHijax", function( event, data ) { | |
if ( event.which !== 1 || event.metaKey || event.ctrlKey ) { | |
return; | |
} | |
event.type = "hijax"; | |
event.liveFired = undefined; | |
return jQuery.event.trigger( event, data, event.target ); |
OlderNewer