Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
@elon-
elon- / README.md
Created May 3, 2016 22:03
block wall: filter user
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>visa issued by indian embassy</title>
<!-- Bootstrap -->
@elon-
elon- / enron.ipynb
Created February 14, 2016 00:58
enron ml
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@elon-
elon- / xml
Created November 18, 2015 07:14
osm data
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.3.3 (28791 thorn-03.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<bounds minlat="41.9704500" minlon="-87.6928300" maxlat="41.9758200" maxlon="-87.6894800"/>
<node id="261114295" visible="true" version="7" changeset="11129782" timestamp="2012-03-28T18:31:23Z" user="bbmiller" uid="451048" lat="41.9730791" lon="-87.6866303"/>
<node id="261114296" visible="true" version="6" changeset="8448766" timestamp="2011-06-15T17:04:54Z" user="bbmiller" uid="451048" lat="41.9730416" lon="-87.6878512"/>
<node id="261114299" visible="true" version="5" changeset="8581395" timestamp="2011-06-29T14:14:14Z" user="bbmiller" uid="451048" lat="41.9729565" lon="-87.6939548"/>
<node id="261146436" visible="true" version="5" changeset="8581395" timestamp="2011-06-29T14:14:14Z" user="bbmiller" uid="451048" lat="41.9707380" lon="-8
@elon-
elon- / osm
Created November 18, 2015 07:11
output
{'address': {}}
{'address': {'city': 'Chicago'}}
{'address': {'housenumber': '5157'}}
{'address': {'postcode': '60625'}}
{'address': {'street': 'North Lincoln Ave'}}
{'address': {}}
{'address': {}}
{'address': {}}
{'address': {}}
{'address': {}}
def shape_element(element):
node = {}
a=[]
if element.tag == "node" or element.tag == "way" :
node=element.attrib
a.append(element.get("lat"))
a.append(element.get("lon"))
node["pos"]=a
node["created"]={c:node[c] for c in CREATED}
for k in element.iter():