Skip to content

Instantly share code, notes, and snippets.

View nylen's full-sized avatar
🏗️
Constructing

James Nylen nylen

🏗️
Constructing
View GitHub Profile
@nylen
nylen / gist:29d9a0480e348d0f6c50
Created January 5, 2016 19:00
Calypso make lint results
Calypso eslint warning counts under various values of the
"react/jsx-closing-bracket-location" rule:
after-props : 7950
tag-aligned : 8509
line-aligned : 8482
(no rule) : 7454
Number of instances of "tag-aligned" or "line-aligned" = 7950 - 7454 ~= 500
Number of instances of "after-props" = ~8500 - 7454 ~= 1000
diff --git a/client/components/site-selector/index.jsx b/client/components/site-selector/index.jsx
index 22e19a3..c1e75bd 100644
--- a/client/components/site-selector/index.jsx
+++ b/client/components/site-selector/index.jsx
@@ -2,6 +2,7 @@
* External dependencies
*/
var React = require( 'react' ),
+ ReactDom = require( 'react-dom' ),
page = require( 'page' ),
@nylen
nylen / devdocs-broken-links.txt
Created November 24, 2015 19:05
Calypso DevDocs broken links
@nylen
nylen / calls.js
Created April 20, 2015 13:38
WPCOM.js tree of possible method calls
// GET /me
wpcom('<token>')
.me()
.get([query], fn);
// GET /me/likes
wpcom('<token>')
.me()
.likes([query], fn);
@nylen
nylen / README.md
Last active August 29, 2015 14:17 — forked from mbostock/.block
d3.js playground
@nylen
nylen / test-oauthbin-hmac.js
Created October 28, 2014 21:14
Test Request's OAuth client implementation
#!/usr/bin/env node
var async = require('async'),
querystring = require('querystring'),
request = require('request');
var requestToken,
accessToken;
async.series([
@nylen
nylen / IP-law.mkdn
Created September 5, 2014 22:08
Ed Nanney's presentation about intellectual property law in Chattanooga on 11/27/2012 - Notes

Introduction

Presented to CHUGALUG on 11/27/12 by Ed Nanney at the Chattanooga Public Library (4th floor)

He "has an affinity for" with entrepreneurs / small businesses; previously worked for a Fortune 500 company

Elevator speech: Anything worth doing has a certain amount of risk associated with it. Doing business has to do with how effective you are at managing the risks you face. Ed tries to identify and mitigate (unnecessary legal) risks in ways that the client considers acceptable.

People have different appetites for risk

@nylen
nylen / A Lawyer Under Fire.pptx
Last active August 29, 2015 14:06
Ed Nanney's presentation about intellectual property law in Chattanooga on 11/27/2012 - Attachments
<HTML>
<HEAD>
<META NAME="author" CONTENT="Donald E. Simanek">
<! Copyright 2001 by Donald E. Simanek.>
<META NAME="description" content="The fibonacci series misused
by addicts of mystical mathematics.">
<META NAME="keywords" content = "Fibonacci, golden mean, golden ratio,
phi, pseudoscience, mystical mathematics, Institute for Creation Research, ICR,
Fred Wilson.">
<TITLE>Fibonacci Flim-Flam.</TITLE>
@nylen
nylen / inject.js
Last active December 13, 2021 16:53
JavaScript file to allow injecting scripts into a page using GreaseMonkey/TamperMonkey and running a callback when loading is complete. Based on http://stackoverflow.com/questions/6725272/dynamic-cross-browser-script-loading .
function inject(src, callback) {
if (typeof callback != 'function') callback = function() { };
var el;
if (typeof src != 'function' && /\.css[^\.]*$/.test(src)) {
el = document.createElement('link');
el.type = 'text/css';
el.rel = 'stylesheet';
el.href = src;