Skip to content

Instantly share code, notes, and snippets.

@newsroomdev
newsroomdev / short.css
Created December 1, 2012 04:33 — forked from vlandham/short.css
Street Map Styling for TileMill
//short version
@minor_color: #1d1d1d;
@major_color: #000;
#roads {
line-join: round;
line-cap: round;
line-width:0.5;
line-color:@minor_color;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@newsroomdev
newsroomdev / convert_pdf2png.sh
Created February 20, 2014 21:32
Convert PDFs to PNGs
#!/usr/bin/env bash
shopt -s nullglob
for pdf in *{pdf,PDF} ; do
sips -s format png --out "${pdf%%.*}.png" "$pdf"
done
/* Paste this after your CSS, but before the media queries begin. */
.spev-jpac-top h1 {
color: #FFF;
}
.spev-jpac-top {
position: relative;
top: 130px;
left: 10px;
# Description:
# Returns gif from Jeff Larson's http://ihatemy.computer/_/
#
# Dependencies:
# Underscore
#
# Commands
# i hate my computer || ihmc returns a random gif
# hubot ____ returns a specific ihmc gif
#
# Description:
# Returns gif from Jeff Larson's http://jeffl.es/_/
#
# Dependencies:
# Underscore
#
# Commands
# hubot jeffles || hubot jeffles me a random gif
# hubot ____ returns a specific jeffles gif
#
@newsroomdev
newsroomdev / rebasename.sh
Last active August 29, 2015 14:02
ReBasename
# ReBasename
# A simple script to iteratively create a new basename for files based on their extensions
#
# rebasename [file ext] [basename]
#
# Todo:
# increment argument
function rebasename() {
n=0;
@newsroomdev
newsroomdev / pub-key.txt
Created August 19, 2014 19:22
PGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.4
Comment: Hostname: pgp.mit.edu
mQINBFPzlicBEADWU8IXUjsgHllyyOkXT/GpjY9JPgeKiuDtuSlYoZrc2nOxT2lHvx/2tBGh
rvxp72m7cCAsKZ+3LnwigAoFwSjb7YdlYwuY+S3siiOzAHALWgRa7VSNz8ATrR7zHunJP61r
KZFVxyrJHfARMWgZnwFv820LE7c9XtkbWhuz/mD808B0j6MXcf6L+mWTbhnMJQiKApXLhso9
7mCECOcto22ea+NapzKSlLZm6f0CHMXgKCBYgylDGEq7ZyM+IqD2VyQSv9aHiQTG5UvVUMPS
f2456ql3VmY3tHca6mPqU7yvczJ6tl8QZUAHMLHgGxrvF49M4U8RvHYGe1iJeBn/rwzhPmCT
F8452fy7ERBkq0x2opIvcErEaVYQJUKk/p1aRLPoGcM1RGs6Eqkfdp3z1XvGebsJMRtt9Bsf
@newsroomdev
newsroomdev / sfpd_districts_old.geojson
Created July 20, 2015 17:46
SFPD Districts (Old)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@newsroomdev
newsroomdev / wobble.js
Created August 4, 2015 14:41
Wobble JS
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = "https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js";
jQuery("body").append( script );
"undefined"==typeof Map?(Map=function(){this.clear()},Map.prototype={set:function(t,e){return this._[t]=e,this},get:function(t){return this._[t]},has:function(t){return t in this._},"delete":function(t){return t in this._&&delete this._[t]},clear:function(){this._=Object.create(null)},get size(){var t=0;for(var e in this._)++t;return t},forEach:function(t){for(var e in this._)t(this._[e],e,this)}}):function(){var t=new Map;t.set(0,0)!==t&&(t=t.set,Map.prototype.set=function(){return t.apply(this,arguments),this})}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.color={})}(this,function(t){"use strict";function e(){}function s(t,e,s){this.r=Math.max(0,Math.min(255,Math.round(t))),this.g=Math.max(0,Math.min(255,Math.round(e))),thi