Skip to content

Instantly share code, notes, and snippets.

@valdezm
valdezm / shp2geojson.py
Created September 29, 2018 00:14 — forked from AlexArcPy/shp2geojson.py
Convert shapefile to GeoJSON with ogr and Python
import json
import ogr
driver = ogr.GetDriverByName('ESRI Shapefile')
shp_path = r'C:\GIS\Temp\Counties.shp'
data_source = driver.Open(shp_path, 0)
fc = {
'type': 'FeatureCollection',
'features': []

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

Keybase proof

I hereby claim:

  • I am valdezm on github.
  • I am valdezm (https://keybase.io/valdezm) on keybase.
  • I have a public key ASBMDhuyqyKO-fI13gjoVYeXGv5Mq8lfRZ33Zi8kbFj8NQo

To claim this, I am signing this object:

getU: function(callback_A, nothing){
var that = this;
//this.username=nothing;
if(this.u_ready == "-1"){
this.setupU(function(user){
nothing = user;
that.username = nothing;
//alert("returning username:"+nothing);
alert("returning this:"+this.username);
some file:
var aTest={
user: "nothing",
a: function(q){this.user = q;
}
}
another js file:
var status2=setInterval(function(){
alert(myUser.getU2()+"*");
},3000);
var myUser={
username: "not_set",
password: "not_set",
u_ready: "-1",
p_ready: "-1",
setupU: function(callback){
temp_user.get("1",function(obj){
var username2 = obj.value.username;
this.username = username2;
//alert("this should be called before"+this.username);