Skip to content

Instantly share code, notes, and snippets.

View mikedillion's full-sized avatar
🔨
If you hear any noise it's just me and my team boppin

Mike Dillion mikedillion

🔨
If you hear any noise it's just me and my team boppin
View GitHub Profile
@Falconerd
Falconerd / gulpfile.js
Last active April 10, 2019 17:16
Gulp + Watchify + Babelify + BrowserSync
/**
* This gulpfile will copy static libraries and a index.html file as well as
* merge, babelify and uglify the rest of the javascript project.
*
* TODO:
* - Separate media, libs and src with different watchers.
* - Media and libs should only be copied to dist if they are different sizes.
*
* The expected project is to be laid out as such:
*
@paragonie-scott
paragonie-scott / crypto-wrong-answers.md
Last active August 17, 2024 06:33
An Open Letter to Developers Everywhere (About Cryptography)
@emeeks
emeeks / d3.sankey.js
Last active December 31, 2021 13:45
Sankey Particles
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;
@bishboria
bishboria / springer-free-maths-books.md
Last active July 17, 2025 06:34
Springer made a bunch of books available for free, these were the direct links
@maptastik
maptastik / README.md
Last active May 27, 2016 16:53
LFUCG's live traffic cams and process to GeoJSONify the data (5/26/16)

Convert LFUCG traffic camera json into GeoJSON

LFUCG released their live traffic cam map. There are more cameras on this map than in the dataset on the open data portal. There are also links to the traffic streams. This gist has the JSON data used in LFUCG's map, a Python script for turning that JSON into more easily mapable GeoJSON, and GeoJSON of that data itself.

What you'll need/want

  • Python
  • cURL

Process

@eeeschwartz
eeeschwartz / index.html
Last active August 26, 2016 15:06
Esri-leaflet example: lexington council district 1
<!DOCTYPE html>
<html>
<head>
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<!-- Load Esri Leaflet from CDN -->
<script src="http://cdn.jsdelivr.net/leaflet.esri/1.0.0/esri-leaflet.js"></script>
@cheshire137
cheshire137 / git-line-history.sh
Last active June 24, 2016 16:30
Find all the Git commits that modified a particular line in a file.
#!/bin/bash
# Sample use:
# PATTERN="\"/some-route\"" FILE=config/routes.rb ~/bin/git-line-history.sh
# Thanks to mikedillion <https://github.com/mikedillion> for the basis of this!
set -e
#PATTERN="version':"
#FILE="setup.py"
@ericclemmons
ericclemmons / example.md
Last active September 20, 2024 12:46
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@patilarpith
patilarpith / Solution.scala
Last active February 18, 2020 20:17
Custom checker in scala
// Start of HEAD
import org.json.simple.JSONArray
import org.json.simple.JSONObject
import org.json.simple.parser.JSONParser
import collection.JavaConversions._
// End of HEAD
// Start of Body
/**
@gabrielflorit
gabrielflorit / Makefile
Last active May 15, 2019 17:50
Equidistant map perimeter circles
all:
rm boundary.topojson;
mapshaper -i ~/Downloads/cb_2015_us_nation_5m/cb_2015_us_nation_5m.shp name=boundary -clip bbox=-126,23,-65,50 -filter-slivers min-area=700000000 -lines -simplify dp 5% -o format=topojson boundary.topojson;