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
################ | |
# Dependencies | |
################ | |
gulp = require 'gulp' | |
watch = require 'gulp-watch' | |
connect = require 'gulp-connect' | |
open = require 'gulp-open' | |
path = require 'path' | |
exec = require('child_process').exec | |
################ |
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
[alias] | |
st = status | |
br = branch | |
ci = commit | |
cp = cherry-pick | |
co = checkout | |
sub = submodule | |
[diff] | |
color = auto |
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
/** | |
* Light-weight YUI-dependend Script Loader | |
* - loads YUI 3 if not already loaded | |
* - then loads your script(s) | |
* | |
* Useful for dynamically loaded modules, injected scripts, bookmarklets, etc… | |
*/ | |
(function() { | |
// YUI to load if unavailable |
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().use("singleton-class", function (Y) { | |
var instance1 = new Y.SingletonClass(), | |
instance2 = new Y.SingletonClass(); | |
Y.log(instance1 === instance2); // true! | |
window.instance1 = instance1; | |
}); | |
YUI().use("singleton-class", function (Y) { |
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_config = { | |
logInclude : { | |
"ID3": true | |
} | |
}; | |
if (typeof console !== "undefined") { | |
console.log = function (m, t, s) { | |
s = s || null; | |
if (!s) { | |
return false; |
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
" Get coffeelint errors in the vim quickfix menu | |
" requires coffeelint to be installed and in the path | |
" http://www.coffeelint.org/ | |
" lint the current file | |
function! CoffeeLintFile() | |
let current = fnamemodify(expand("%"), ':p') | |
call CoffeeLintAnalyze(current) | |
endfunction |
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
@import "compass"; | |
/** | |
* A pure CSS mask which centralizes content inside. | |
* This technique is compatible with IE7+ and major standard browsers. | |
* | |
* Required HTML structure: | |
* | |
* <div class="mask"> | |
* <div class="mask-box"> | |
* <div class="mask-inner-box"> |
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
// jshint maxparams: 8 | |
define([ | |
'jquery', | |
'fmjs/amd/src/fm.timer', | |
'Select2/src/js/select2/utils', | |
'Select2/src/js/select2/dropdown', | |
'Select2/src/js/select2/dropdown/attachContainer', | |
'Select2/src/js/select2/dropdown/search', | |
'Select2/src/js/select2/dropdown/minimumResultsForSearch', | |
'Select2/src/js/jquery.select2', |
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> | |
<html> | |
<head> | |
<title>Sorting Color Nodes by Hue</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
body { | |
overflow: hidden; | |
background: #333333; | |
} |
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
/** @jsx React.DOM */ | |
'use strict'; | |
var React = require('react'); | |
var AnimatableComponent = React.createClass({ | |
propTypes: { | |
tag: React.PropTypes.component.isRequired, |
OlderNewer