Skip to content

Instantly share code, notes, and snippets.

View d4tocchini's full-sized avatar

Dan Tocchini IV d4tocchini

View GitHub Profile
@d4tocchini
d4tocchini / harmonize.coffee
Created August 20, 2011 05:20
jQueryML plugin factory
$.plugins.add
name: 'harmonize'
api:
itemClass: 'harmonized'
itemSelector: null
properties: ['width', 'height', 'class'] # 'class', 'attr', 'plugin', css atributes
units: [80, 50, 'harmony']
harmonies:
[
[[12,12]]
$ = jQuery
# Wrap in Closure to avoid global variables.
$ ->
RW.Pages = new RW.p.PageCollection()
new RW.Page
id: 'home'
$ = jQuery
# Wrap in Closure to avoid global variables.
$ ->
###
ICanHaz.js version 0.9 -- by @HenrikJoreteg
More info at: http://icanhazjs.com
#8b d88 88
@d4tocchini
d4tocchini / pages.coffee
Created August 6, 2011 05:04
RW.Pages API
$ = jQuery
# Wrap in Closure to avoid global variables.
$ ->
RW.Pages = new RW.p.PageCollection()
RW.Pages.add [
{
id: 'home'
pageLevel: 0