[] Sublime Text 2 [] iPython [] iPython Notebook [] Node [] npm [] sublime bracket highlighter [] sublime linter [] gopath [] golang
This file contains hidden or 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
'use strict'; | |
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var react = require('gulp-react'); | |
var DIST_DIR = 'public/dist/'; | |
gulp.task('default', ['build-jsx', 'build-vendor']); |
This file contains hidden or 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
;(function (global) { | |
'use strict'; | |
function getType (obj) { | |
if (typeof obj === 'string') { | |
return 'string'; | |
} | |
else if (typeof obj === 'number') { | |
return 'number'; | |
} | |
else if (Array.isArray(obj)) { |
This file contains hidden or 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
<html> | |
<head> | |
<title>angular js todo</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.13/angular.min.js"></script> | |
</head> | |
<body ng-app="todoApp"> | |
<div ng-controller="TodoListController"> | |
<h2>Todo Items</h2> | |
<ul> |
This file contains hidden or 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
<html> | |
<head> | |
<title>todo app</title> | |
</head> | |
<body> | |
<h2>Todo Items</h2> | |
<ul id="todo-list"></ul> | |
<input id="add-item-input"> |
This file contains hidden or 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
;(function () { | |
'use strict'; | |
var UNSAFE_STR_REGEX = /[\n\r]+/; | |
var SUPPORTED_TYPES = [ | |
'array', | |
'object', | |
'boolean', | |
'string', |
This file contains hidden or 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 node: true */ | |
'use strict'; | |
var gulp = require('gulp'); | |
var mainBowerFiles = require('main-bower-files'); | |
var concat = require('gulp-concat'); | |
var merge = require('gulp-merge'); | |
gulp.task('all', function () { |
This file contains hidden or 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
# start python simpleHTTPServer in current directory | |
function pserve { | |
if [[ -z $1 ]]; then | |
PYTHON_SERVER_PORT=8000 | |
else | |
PYTHON_SERVER_PORT=$1 | |
fi | |
python -m SimpleHTTPServer $PYTHON_SERVER_PORT | |
} |
This file contains hidden or 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
<html ng-app="mbildner.timeout"> | |
<head> | |
<title></title> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
<script> | |
function isFunction (obj) { | |
return typeof obj === 'function'; | |
} |