Skip to content

Instantly share code, notes, and snippets.

View Jwely's full-sized avatar
🏠
Working from home

Jeff Ely Jwely

🏠
Working from home
  • Amazon
  • DC Metro
View GitHub Profile
@mhweber
mhweber / explode.py
Created July 25, 2016 17:45 — forked from debboutr/explode.py
Explode MultiPolygon geometry into individual Polygon geometries in a shapefile using GeoPandas and Shapely
import geopands as gpd
from shapely.geometry.polygon import Polygon
from shapely.geometry.multipolygon import MultiPolygon
def explode(indata):
indf = gpd.GeoDataFrame.from_file(indata)
outdf = gpd.GeoDataFrame(columns=indf.columns)
for idx, row in indf.iterrows():
if type(row.geometry) == Polygon:
outdf = outdf.append(row,ignore_index=True)
@LeoVerto
LeoVerto / reddit-robin-autogrow.js
Created April 1, 2016 16:20
Reddit Robin Auto-Grow
// Paste this into your browser's dev console to automatically click "Grow" once a minute.
setInterval(function () {document.getElementsByClassName("robin--vote-class--increase")[0].click();}, 60000);
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();