Skip to content

Instantly share code, notes, and snippets.

View NotZombieFood's full-sized avatar
😋

Gerardo Cruz NotZombieFood

😋
View GitHub Profile
@NotZombieFood
NotZombieFood / master_slave.py
Created August 2, 2019 05:24
Python Script calls another script with arguments (py2 and py3)
# Master
import sys
backup_argv = sys.argv
sys.argv = ['slave.py','NotZombieFood']
if sys.version_info >= (3, 0):
exec(open("slave.py").read())
else:
execfile('slave.py')
@NotZombieFood
NotZombieFood / js
Created June 17, 2018 02:12
find point inside feature using turf
for (var i = 0; i < geojsontest["features"].length; i++) {
var poly = geojsontest["features"][i]["geometry"];
var isInside1 = turf.inside(pt1, poly);
if(isInside1){
console.log(geojsontest["features"][i]["properties"]["letter"]);
}
}
group: monkey barfs occasionally. stupid
description[[ the data for this dataset was generated using pythonConv by notZombieFood]]
job = {jobID pickupDate driverID clientID cost
1001 7/25/2006 D456 C034 1000
1102 7/29/2006 D456 C034 700
1203 7/30/2006 D344 C034 300
1334 08/02/2006 D667 C089 550
1455 08/02/2006 D957 C019 450
1676 8/25/2006 D344 C019 800