Skip to content

Instantly share code, notes, and snippets.

View defims's full-sized avatar

Long, Wei defims

View GitHub Profile
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:41 — forked from jed/LICENSE.txt
walk and filter DOM nodes by function
{
"name": "walk",
"keywords": ["walk", "filter", "DOM"],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:40 — forked from jed/LICENSE.txt
calculate # of ms/seconds/minutes/hours/days in the past
{
"name": "timeAgo",
"keywords": ["time", "chronological", "ago"],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:40 — forked from jed/LICENSE.txt
swap DOM nodes with HTML
{
"name": "swap",
"keywords": ["swap", "replace", "DOM", "HTML"],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:36 — forked from jed/LICENSE.txt
create DOM fragments from HTML
{
"name": "frag",
"keywords": ["DOM", "document", "fragment"],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:35 — forked from jed/LICENSE.txt
extend/unextend objects
{
"name": "extend",
"description": "extend/unextend object properties",
"keywords": ["extend", "object", "properties"],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:34 — forked from jed/LICENSE.txt
generate a random ID
{
"name": "randomID",
"keywords": [ "random", "ID" ],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:34 — forked from jed/LICENSE.txt
publish/subscribe, or pubsub
{
"name": "pubsub",
"keywords": [ "pubsub", "observer", "publish", "subscribe" ],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:39 — forked from jed/LICENSE.txt
bind and unbind events
{
"name": "on",
"keywords": ["bind", "events", "event", "DOM"],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Created June 13, 2016 07:46 — forked from stdclass/example.js
Type Checking
{
"name": "typechecking",
"keywords": [ "check", "type", "checktype" ],
"version": "0.1.0"
}
@defims
defims / PACKAGE.json
Last active June 13, 2016 07:51 — forked from ryanstevens/Example.html
Countdown Timer
{
"name": "CountdownTimer",
"description": "This function will countdown to zero (and go one iteration past zero) by firing a callback on a set interval",
"keywords": ["140bytes", "recursion", "countdown", "setInterval", "time"],
"version": "0.1.0"
}