Skip to content

Instantly share code, notes, and snippets.

View newsroomdev's full-sized avatar

Gerald Rich newsroomdev

View GitHub Profile
@mikemorris
mikemorris / coffee.geojson
Last active March 26, 2018 01:02
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ashaw
ashaw / sankey.js
Last active August 29, 2015 13:56
var Sankey = function(opts) {
this.opts = opts;
this.el = $("#" + this.opts.el);
this.graphsReady = 0;
this.graphWidth = this.el.width();
};
Sankey.prototype.initPaper = function() {
this.paper = Raphael(document.getElementById(this.opts.el));
};
@d3noob
d3noob / .block
Last active January 13, 2022 22:58
Dynamic historical stock data with d3.js and YQL
license: mit
@mbostock
mbostock / .block
Last active September 30, 2016 16:15
Reprojecting CSV with ogr2ogr
license: gpl-3.0
@caged
caged / index.html
Last active January 16, 2020 10:24
Plot vector points on a cropped raster image with d3.js
<!doctype html>
<meta charset="utf-8">
<body>
<style media="screen">
body {
margin: 0;
}
.supermarket {
fill: red;
@wboykinm
wboykinm / labels.mss
Created August 25, 2014 17:32
"Afternoon Satellite" - Mapbox "Satellite Afternoon", tweaked a bit.
// Languages: name (local), name_en, name_fr, name_es, name_de
@name: '[name_en]';
@sans: 'Mark Offc Pro Regular', 'Arial Unicode MS Regular';
@sans_it: 'Mark Offc Pro Italic', 'Arial Unicode MS Regular';
@serif_md: 'Mark Offc Pro Bold', 'Arial Unicode MS Regular';
@sans_bold: 'Mark Offc Pro Bold', 'Arial Unicode MS Regular';
#country_label {
#!/usr/bin/env ruby
#
# This hook can be found in https://github.com/juliamae/githooks
commit_msg_file = ARGV[0]
branch_name = `git branch | grep '*'`.gsub(/[* |\n]/,"")
if message = open(commit_msg_file).read
open(commit_msg_file, 'w') do |f|
f.puts message.gsub("Merge", ":part_alternation_mark:erge")
@tommeagher
tommeagher / #NICAR18 advice
Last active March 9, 2018 13:47
Note to self for #NICAR16
Next year, try to:
* Drink more water.
* Drink less coffee, beer and whiskey.
* Eat a vegetable, it won't kill you.
* Get up and hit the gym in the morning.
* Leave the hotel at least once every day.
* Bring extra charging cords and a powerstrip. Write your name on the supplies you lend out. (@ecarewgrovum)
* Eat meals with parties of 4. It's much easier to get a table in a busy town. For big groups, just get drinks.
* Split into smaller groups, if you take a large party to dinner, and you have to wait forever. (@chrislkeller)
@risatrix
risatrix / gist:ceabdf7e8d00f9dbdd38
Last active February 10, 2016 23:13
Texas Tribune Pull Request Template

Here's our template for what should go in a pull request. This seems overly-verbose, but will help us:

  • manage technical debt
  • link pull requests to sprint tasks
  • give future developers a lot more context
  • give reviewers the context they need to understand the problem you're trying to solve and the acceptance criteria you're trying to meet.

It's nice, but not required to fill everything out when you first open your pull request. This template shouldn't be a barrier to contributing code - and you can open a PR with the words WIP in front, to let us know it's not quite there yet, then go back and update information at any time.

@mtigas
mtigas / gpg.conf
Last active September 24, 2024 14:40
hide your PGP version & other info
#~/.gnupg/gpg.conf
# Hide your PGP version & other PGP version metadata with these two config lines.
# This line hides the "Version: GnuPG vX.XX.XX" line
no-emit-version
# This line hides the "Comment: XXXXX" lines
no-comments
# NOTE if you are using Thunderbird+Enigmail you probably need to set this again in
# the Enigmail->Preference settings: