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> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
</head> |
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
// Configuring Grunt tasks: | |
// http://gruntjs.com/configuring-tasks | |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Play sound: https://github.com/astronaughts/grunt-play | |
play: { | |
compasscomplete: { | |
file: '/System/Library/Sounds/purr.aiff' |
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
/** | |
This module exports one function, loadModules, which guesses then downloads the modules | |
which need to be loaded before bootstrapping the application. loadModules() returns an | |
array of Promises which can be waited on using Promise.all. | |
The guessing process can handle | |
- normal loader as route.loadChildren | |
- redirect as route.redirectTo | |
- nested lazy loaders using route.data.alsoLoad* |
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
@Directive({ | |
selector: '[universalAd],[universal-ad]' | |
}) | |
class UniversalAd { | |
constructor( | |
@Attribute('id') public id: string, | |
public adRegistry: MyAdRegistry, | |
public elementRef: ElementRef, | |
public cdRef: ChangeDetectorRef) { |
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 XMLHttpRequest = function() { | |
var http = require('http'), | |
https = require('https'); | |
var method, host, port, path, protocol, | |
request, xhr, callEventListeners, | |
statusCodes, syncFinished, | |
lastReadyState = 0, | |
listeners = ['readystatechange', 'abort', 'error', 'loadend', 'progress', 'load'], |
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
/* global mapboxgl */ | |
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import Immutable from 'immutable'; | |
import { clickMap, setStyle } from '../actions/index'; | |
import diffStyles from '../utilities/diff.js'; |
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 {Injectable, NgModuleFactory, NgModuleFactoryLoader, Compiler, Type} from '@angular/core'; | |
class LoaderCallback { | |
constructor(public callback) {} | |
} | |
export let load: Type = (callback: Function) => { | |
return new LoaderCallback(callback); | |
}; |
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
<script> | |
window.Promise || document.write('<script src="https://unpkg.com/es6-promise@3.2.1/dist/es6-promise.min.js"><\/script>'); | |
window.fetch || document.write('<script src="https://unpkg.com/whatwg-fetch@1.0.0/fetch.js"><\/script>'); | |
</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
/* jsdomtest.js: Build a pie chart using d3.js and send the result to stdout | |
* Requires d3.js and d3.layout.js in same directory | |
* Requires pie.js from this gist: https://gist.github.com/1509145 | |
* ex. node jsdomtest.js > pie.svg | |
*/ | |
var jsdom = require('jsdom'), | |
scripts = ["file://"+__dirname+"/d3.min.js", | |
"file://"+__dirname+"/d3.layout.min.js", | |
"file://"+__dirname+"/pie.js"], |
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
lsof -P | grep ':8080' | awk '{print $2}' | xargs kill -9 |
OlderNewer