<script src="//jspm.io/system.js" type="text/javascript"></script>
<script src="//code.innit.io/system.config.js" type="text/javascript"></script>
<script src="//code.innit.io/zone.js" type="text/javascript"></script>
<script src="//code.innit.io/angular2/angular2.js" type="text/javascript"></script>
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
// browserify | |
var browserify = require('browserify'); | |
var es6ify = require('es6ify'); | |
// gulp stuff | |
var gulp = require('gulp'); | |
var livereload = require('gulp-livereload'); | |
var source = require('vinyl-source-stream'); | |
var jshint = require('gulp-jshint'); | |
var livereload = require('gulp-livereload'); | |
var watch = require('gulp-watch'); |
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
tv4.asyncFetchSchemas = function (urls, callback) { | |
var activeRequests = 0; | |
var attemptedRequest = {}; | |
if (!Array.isArray(urls)) urls = [urls]; | |
function requestFinished(url) { | |
activeRequests--; | |
var missing = tv4.getMissingUris(); | |
for (var i = 0; i < missing; i++) { |
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 {Component as _Component, Template as _Template} from 'angular2/src/core/annotations/annotations'; | |
function makeDecorator(annotationClass) { | |
return (options) => { | |
return (klass) => { | |
klass.annotations = klass.annotations || []; | |
klass.annotations.push(new annotationClass(options)); | |
return klass; | |
}; | |
}; |
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
/** | |
* RWHttp | |
* | |
* Base Class Used for making XHR/AJAX requests, uses the ES6 window.fetch API where available, or Github's polyfill. | |
*/ | |
import {fetch} from './network/RWFetch'; | |
import {RWHttpRequest} from './network/RWHttpRequest'; | |
import {RWHttpResponse} from './network/RWHttpResponse'; | |
import {RWHttpConfig} from './network/RWHttpConfig'; |
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 | |
# DESCRIPTION Setup wildcard domains using dnsmasq so *.doc is automatically sent to a running boot2docker vm | |
# MAINTAINER sxalexander@gmail.com | |
# See: | |
# https://echo.co/blog/never-touch-your-local-etchosts-file-os-x-again | |
# https://gist.github.com/r10r/5108046 | |
# http://passingcuriosity.com/2013/dnsmasq-dev-osx/ | |
# check for homebrew | |
if ! command -v brew >/dev/null; then |
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 VerEx from 'verbal-expressions'; | |
const eventualCallIs = name => { | |
// FOR PERF | |
const boundCheck = node => | |
node.type === 'Identifier' && node.name === name || | |
node.type === 'MemberExpression' && boundCheck(node.object) || | |
node.type === 'CallExpression' && boundCheck(node.callee) | |
return boundCheck; |
Update! There is now a script to do these steps for you.
These instructions will set up local-npm so that it runs as a launch daemon, meaning that it will start up whenever you log in.
First, install local-npm
and pm2
:
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
app.constant("RouteManifest", { | |
"/login" : { | |
templateUrl: 'templates/login.html', | |
controller: 'LoginController' | |
}, | |
"/home" : { | |
templateUrl: 'templates/home.html', | |
controller: 'HomeController' | |
}, |
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 React from 'react'; | |
import styled from 'styled-components'; | |
const Item = styled.div` | |
margin-top: 1px; | |
padding: 15px; | |
background: #333; | |
${({first}) => first ? ` | |
margin-top: 0; |
OlderNewer