You need to have SketchTool installed somewhere in your path.
Add this in your ~/.gitconfig file (for some reason, it won't work in a local .gitconfig file):
| import Reconciler from 'react-reconciler' | |
| import omit from 'lodash/omit' | |
| import capitalize from 'lodash/capitalize' | |
| import { actions as elementActions } from './store/elements' | |
| import * as Elements from './elements' | |
| const roots = new Map() | |
| const emptyObject = {} | |
| const Renderer = Reconciler({ |
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
| function isObject(test) { | |
| return Object.prototype.toString.call(test) === '[object Object]'; | |
| } | |
| function trap(host, targetName, handler) { | |
| const prison = {}; | |
| let cell = {}; | |
| Object.defineProperty(prison, targetName, { | |
| configurable: true, |
You need to have SketchTool installed somewhere in your path.
Add this in your ~/.gitconfig file (for some reason, it won't work in a local .gitconfig file):
| /// <reference path="typings/node/node.d.ts" /> | |
| /// <reference path="typings/typescript/typescript.d.ts" /> | |
| import ts = require("typescript"); | |
| import fs = require("fs"); | |
| import path = require("path"); | |
| function transform(contents: string, libSource: string, compilerOptions: ts.CompilerOptions = {}) { | |
| // Generated outputs | |
| var outputs = []; |
| /* jslint browser:true, devel:true */ | |
| (function () { | |
| 'use strict'; | |
| if (typeof Element.prototype.matches !== 'function') { | |
| var proto = Element.prototype; | |
| var matches = proto.matches || | |
| proto.webkitMatchesSelector || | |
| proto.mozMatchesSelector || |
| (function () { | |
| 'use strict'; | |
| var CSSCriticalPath = function (w, d) { | |
| var css = {}; | |
| var findMatchingRules = function (node, pseudo) { | |
| var rules = w.getMatchedCSSRules(node, pseudo); | |
| var duplicate = false; | |
| var rulesArr = null; |
| // Based on: | |
| // http://groups.google.com/group/nodejs-dev/browse_thread/thread/a0c23008029e5fa7 | |
| process.stdin.resume(); | |
| process.stdin.on('data', function (b) { | |
| var s = b.toString('utf8'); | |
| if (s === '\u0003') { | |
| console.error('Ctrl+C'); | |
| process.stdin.pause(); |
Implementation of Jarke J. van Wijk and Wim A.A. Nuij's smooth and efficient zooming and panning for Polymaps.
Type a place name in the search box, top right, and hit "Go!" to fly there.