Skip to content

Instantly share code, notes, and snippets.

View baisong's full-sized avatar

Oren Robinson baisong

View GitHub Profile
"@"+("00"+Math.floor((((x.getUTCHours()+1)%24*60+x.getUTCMinutes())*60+x.getUTCSeconds()+(x.getUTCMilliseconds()*0.001))/86.4)).slice(-3)
/**
* Custom jQuery effects for gking theme.
*
* Note: this (function ($) { ... }(jQuery); is a Drupal idiom, optional to use and FASTER :)
*/
(function ($) {
Drupal.behaviors.rosa = {
attach: function (context) {
//hides all dates on Works page in ". YYYY." format
@baisong
baisong / README.md
Created July 5, 2011 12:17 — forked from rgabo/README.md
CoffeeScript / Node.js - ticksort

Node.js ticksort in CoffeeScript!

Beating your sleepsort by magnitudes! Takes only SUM(argv) ticks and does not overflow the stack either. Fork the gist if you can reduce the size of ticksort.coffee.