This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
// Runs the YUI3 build tool on a directory. Docs: <http://yui.github.io/shifter/> | |
"shifter": { | |
"crm-src": { | |
// (optional) version - What to fill in on the "@VERSION@" field in built files | |
"version": "CRM", | |
// (optional) lint can be 'config' or false | |
// if "config", shifter will use the nearest .jshintrc JSON file as JSHint config | |
// if "false", shifter will skip the lint step entirely. | |
"lint" : "config", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="ie ie6" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="ie ie7" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="ie ie8" lang="en"> <![endif]--> | |
<!--[if gte IE 9]> <html class="ie" lang="en"> <![endif]--> | |
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>z-aliased-attr Test Suite</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add('node-scroll-info', function (Y) { | |
/** | |
Provides the ScrollInfo Node plugin, which exposes convenient events and methods | |
related to scrolling. | |
@module node-scroll-info | |
**/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apt-get -y update | |
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ | |
mkdir /tmp/node-install | |
cd /tmp/node-install | |
wget http://nodejs.org/dist/node-v0.4.12.tar.gz | |
tar -zxf node-v0.4.12.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var escapeHTML = function(s) { | |
return s.replace( | |
/([<>&""''])/g, | |
function(m, c) { | |
switch(c) { | |
case "<": return "<"; | |
case ">": return ">"; | |
case "&": return "&"; | |
case '"': return """; | |
case "'": return "'"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Requires ftxdumperfuser from http://developer.apple.com/textfonts/download/ | |
# | |
# Usage: fixconsolas [files ...] | |
# When called with no arguments, it attempts to operate on every TrueType | |
# file in the current directory. | |
# | |
# References: | |
# http://bandes-storch.net/blog/2008/12/21/consolas-controlled/#comment-2042 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my ~/.profile | |
# somewhat mac-specific, lots of git aliases | |
# functionName () { do something $@<-arguments ; } | |
function ls { command ls -1AGp "$@"; } | |
# 'command ls' to prevent loop; -A for .file, -F for dir/ link@, | |
# -h for 5k 3m 1g, -o for printing flags (uchg)... | |
function l { ls -lhog "$@"; } # -l to list in long format... | |
function ll { ls -lF "$@" | less -XF ; } # pipe into 'more' | |
NewerOlder