Skip to content

Instantly share code, notes, and snippets.

View evocateur's full-sized avatar

Daniel Stockman evocateur

View GitHub Profile
@tivac
tivac / home-carousel.handlebars.js
Created May 15, 2012 20:07
Combo-handler served Handlebars files
@rgrove
rgrove / node-scroll-info.js
Created June 6, 2012 21:35
node-scroll-info.js
/*!
Copyright (c) 2012 Ryan Grove. All rights reserved.
Redistribution and use of this software in source and binary forms, with or
without modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
@isaacs
isaacs / .gitconfig
Created June 8, 2012 19:01
These are my shortcuts for git.
# A bunch of the stuff above relies on this, especially the aliases.
[user]
# you probably want to change this bit.
name = isaacs
email = i@izs.me
signingkey = 0x6C481CF6
[alias]
ci = commit
st = status
br = branch
@tivac
tivac / extension-model-reset.js
Created June 22, 2012 20:58
More powerful Model.reset()
ResetExtension = function(){};
ResetExtension.prototype = {
reset : function(name, options) {
var self = this,
attributes = {};
//allow old-style string name/string name + options/just options
if(Y.Lang.isString(name)) {
attributes[name] = self._state.get(name, "initValue");
} else if(Y.Lang.isObject(name)) {
@tivac
tivac / transform-buttondir.js
Created August 6, 2012 17:48
View transforms
/*global YUI:true */
YUI.add("transform-buttondir", function(Y) {
Y.namespace("GW2.Transforms").buttonDir = function(models, dir) {
return Y.Array.map(models, function(item) {
if(item.quantities) {
//if a dir was specified set every quantity to that
if(dir) {
item.quantities = Y.Array.map(item.quantities, function(quantity) {
quantity.dir = dir;
@derek
derek / README.md
Created August 17, 2012 02:06
Loading YUI from the CDN into a Web Worker

Scenario

I want to use YUI inside of a WebWorker thread. Flickr recently wrote a post on this very topic, Web workers and YUI.

Problem

But I want to use YUI's CDN, which WebWorkers prevent because it enforces a same-origin policy with importScripts()

Solution

@ericf
ericf / gist:4558180
Last active December 11, 2015 06:18
{
"align_indent": false,
"alignment_chars":
[
"=",
":"
],
"alignment_space_chars":
[
"="
@davglass
davglass / Features.md
Created February 1, 2013 15:21
Proposal for new YUI.Features

New YUI Feature Detection

This is my proposal for revamping the YUI Core Feature detection system.

Problem Space

  • 90% of our so-called "Feature Tests" are actually Loader conditional modules.
  • Some "free-flowing" tests in DOM modules.
#!/usr/bin/env node
var fs = require('fs'),
path = require('path'),
yui_module = process.argv[2] ? path.join(process.cwd(), process.argv[2]) : 'yui',
output = process.argv[3],
EXCLUDE_FILTERS = [
/^cookie/,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC
"-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.bitlbee</string>
<key>ProgramArguments</key>
<array>