Skip to content

Instantly share code, notes, and snippets.

Avatar

Seth Livingston sethlivingston

  • Murphy, TX
View GitHub Profile
View gist:2a985ee6590ddc2ef3ec
Y.mix(Y.Transition.fx, {
'app:slideUp': {
duration : .6,
transform: 'translateY(-100%)',
on: {
start: function () {
this.setStyles({
opacity : 1,
transform: 'translateY(0%)'
@felixrabe
felixrabe / string-utils.coffee
Last active Jun 25, 2018
CoffeeScript: String.startsWith() and String.endsWith()
View string-utils.coffee
# http://stackoverflow.com/a/646643
String::startsWith ?= (s) -> @slice(0, s.length) == s
String::endsWith ?= (s) -> s == '' or @slice(-s.length) == s
@clintel
clintel / gist:1155906
Created Aug 19, 2011
Fenced code in bullet lists with GitHub-flavoured MarkDown??
View gist:1155906

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@okuryu
okuryu / yui.coffee
Created Mar 15, 2011
YUI x CoffeeScript x Node.js Example
View yui.coffee
$ node yui.js
info: (yui): Modules missing: io, 1
info: (yui): Fetching loader: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/loader/loader-debug.js
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/loader/loader-debug.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/loader/loader-debug.js
info: (yui): Modules missing: oop,parallel,event-custom-base,nodejs-dom,event-base,dom,node-base,dom-style-ie,node-style,queue-promote,datatype-xml,io,io-nodejs, 13
info: (yui): Using Loader
info: (loader): attempting to load oop, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/oop/oop-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/oop/oop-min.js
You can’t perform that action at this time.