Skip to content

Instantly share code, notes, and snippets.

Tom Longson nym

Block or report user

Report or block nym

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nym
nym / .block
Last active Sep 13, 2018
mp sankey
View .block
license: mit
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>
@nym
nym / app.html
Created Mar 30, 2017
Aurelia Router Demo
View app.html
<template>
<require from="components/navigation.html"></require>
<h1>Aurelia Router Demo</h1>
<navigation router.bind="router" class="primary-navigation"></navigation>
<div class="page-host">
<router-view></router-view>
</div>
</template>
@nym
nym / app.html
Created Mar 30, 2017 — forked from ScottWhittaker/app.html
Aurelia Router Demo
View app.html
<template>
<require from="components/navigation.html"></require>
<h1>Aurelia Router Demo</h1>
<navigation router.bind="router" class="primary-navigation"></navigation>
<div class="page-host">
<router-view></router-view>
</div>
</template>
@nym
nym / README.md
Last active Aug 29, 2015 — forked from ameyms/README.md
D3 Gauge - Part Deux
View README.md

Yet another simple gauge chart using d3 Inspired by Jake Trent's Codepen snippet

To move the pointer needle, type in following code in you javascript console

needle.moveTo(.25)
View .gitignore
.DS_Store
*.log
tmp/
@nym
nym / gist:2967352
Created Jun 21, 2012
Is it loaded? Is it loaded? Yes it might be. Yes it might be.
View gist:2967352
var jsdom = require('jsdom');
var fs = require('fs');
var request = require("request");
var jsdom = require("jsdom");
jsdom.defaultDocumentFeatures = {
FetchExternalResources : ['script', 'img', 'css', 'frame', 'link'],
ProcessExternalResources : ['script', 'img', 'css', 'frame', 'link'],
@nym
nym / gist:2918959
Created Jun 12, 2012
Script tag not loading
View gist:2918959
var jsdom = require('jsdom');
jsdom.defaultDocumentFeatures = {
FetchExternalResources : ['script'],
ProcessExternalResources : ['script'],
MutationEvents : '2.0',
QuerySelector : false
};
var htmlDoc = '<html lang="en-US">' +
View gist:2918776
var jsdom = require('jsdom');
jsdom.defaultDocumentFeatures = {
FetchExternalResources : ['script'],
ProcessExternalResources : ['script'],
MutationEvents : false,
QuerySelector : false
};
//var fs = require('fs');
//var jquery = fs.readFileSync("./jquery-1.6.2.min.js").toString();
View gist:2918775
var jsdom = require('jsdom');
jsdom.defaultDocumentFeatures = {
FetchExternalResources : ['script'],
ProcessExternalResources : ['script'],
MutationEvents : false,
QuerySelector : false
};
//var fs = require('fs');
//var jquery = fs.readFileSync("./jquery-1.6.2.min.js").toString();
You can’t perform that action at this time.