Skip to content

Instantly share code, notes, and snippets.

:octocat:
heads down...

brad oyler bradoyler

:octocat:
heads down...
Block or report user

Report or block bradoyler

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
@aendrew
aendrew / GoT-screentimes--s06.json
Last active Sep 7, 2017
Game Of Thrones total screentimes (Up to and including Season 6)
View GoT-screentimes--s06.json
[
{
"name": "Tyrion Lannister",
"imdbUrl": "http://www.imdb.com/character/ch0146096/",
"screentime": 293.3,
"episodes": 54,
"portrayedBy": {
"name": "Peter Dinklage",
"imdbUrl": "http://www.imdb.com/name/nm0227759/"
}
@rveciana
rveciana / README.md
Last active May 15, 2019
Congressional representatives dataset
View README.md

Based on this data, contains a Shapefile and two topojson with the US congressional Districts.

The atlas-make project has a better maintained version of this data.

The difference from the data is based on, is that the American Samoa, Guam and Northern Marianas are included from the Natural Earth dataset. The Congress Representative data is included too.

get_areas.py is a script to calculate the area paoperties for the new objects. The name of the Congressional Representatives in the added territories has been taken from the Wikipedia.

The topojson has been calculated using the command: topojson -o us_congressional_district.json cgd114p010g.shp -p

@cmgiven
cmgiven / .block
Created Aug 15, 2016
Demers Cartogram
View .block
license: mit
height: 600
@bradoyler
bradoyler / node-standards-v4.md
Last active Apr 27, 2017
Node.js Standards (for the enterprise) we should all try to agree on.
View node-standards-v4.md

Some NodeJs (v4.x) choices we can all agree on?

@plmrry
plmrry / .block
Last active May 17, 2017
Collision Radius Transition
View .block
license: gpl-3.0
@tomcardoso
tomcardoso / heroku.sh
Last active Mar 28, 2016
chart tool heroku deployment
View heroku.sh
#!/bin/bash
CURRHASH=`git rev-parse --short HEAD`
CURRBRANCH=`git rev-parse --abbrev-ref HEAD`
git commit -am "Deploying ${CURRHASH} to Heroku"
git checkout -b "deploy-${CURRHASH}"
gulp lib-build
@Hypercubed
Hypercubed / README.md
Last active Jun 15, 2016
Epicyclic Gearing (with svgsaver)
View README.md

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

forked from mbostock's block: Epicyclic Gearing

@ivan-kleshnin
ivan-kleshnin / lwip.utils.js
Last active Aug 29, 2015
Resize with lwip
View lwip.utils.js
// resolution is [width, height] structure
// Evaluate resolution by width (height doesn't matter, just keep it proportional)
function evalResolutionByWidth(requiredWidth, actualResolution) {
var actualWidth = actualResolution[0];
var actualHeight = actualResolution[1];
if (actualWidth > requiredWidth) {
var scale = actualWidth / requiredWidth;
return [requiredWidth, Math.round(actualHeight / scale)];
} else {
@hueniverse
hueniverse / gist:a3109f716bf25718ba0e
Last active Mar 18, 2019
Response to Netflix's "Node.js in Flames" Blog Post
View gist:a3109f716bf25718ba0e

If you haven't read Netflix's Node.js in Flames blog post you should. It is a great deep dive into debugging a node performance problem. The post includes useful tips that can help you solve similar problems.

That said...

My feedback from the perspective of a framework developer is quite different. I found the tone and attitude towards express.js to be concerning and somewhat offensive. Here was a developer blaming the framework he chose for poor architecture when they never bothered to actually learn how the framework works in the first place. Everything that followed originated from this basic lack of understanding.

Express uses a very simple router logic which is at the core of how express works, so let’s examine that first (my knowledge of express is somewhat dated but I think the principle is still the same). Express keeps a hash of the various HTTP methods (GET, POST, etc.) and for each method, an array of middlewares. Each middleware is ju

@Integralist
Integralist / GitHub curl.sh
Last active Nov 6, 2019 — forked from madrobby/gist:9476733
Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article: https://help.github.com/articles/creating-an-access-token-for-command-line-use
View GitHub curl.sh
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \
--header 'Accept: application/vnd.github.v3.raw' \
--remote-name \
--location https://api.github.com/repos/owner/repo/contents/path
# Example...
TOKEN="INSERTACCESSTOKENHERE"
OWNER="BBC-News"
REPO="responsive-news"
You can’t perform that action at this time.