Skip to content

Instantly share code, notes, and snippets.

View Dudemullet's full-sized avatar
🤓
//

Pipe Gutierrez Dudemullet

🤓
//
View GitHub Profile
tell application "Google Chrome"
set tab_list to every tab in the front window
repeat with the_tab in tab_list
set the_url to the URL of the_tab
tell application "Safari" to open location the_url
end repeat
end tell
@Dudemullet
Dudemullet / open-current-chrome-tab-in-safari.scpt
Last active May 13, 2019 19:41
Opens the active tab in the front most Google Chrome window in Safari.
tell application "Google Chrome"
set current_tab to active tab in the front window
set the_url to the URL of current_tab
tell application "Safari" to open location the_url
tell current_tab to close
end tell
componentWillReceiveProps(nextProps) {
if (nextProps.lastRequestedUserLocationAt > this.props.lastRequestedUserLocationAt) {
this.centerMapToUser(nextProps.currentLocation);
}
if (nextProps.lastUpdated > this.props.lastUpdated) {
const markers = this.createMarkersForLocations(nextProps);
if (markers && Object.keys(markers)) {
const clusters = {};
@Dudemullet
Dudemullet / index.html
Created April 29, 2012 07:19
basic d3 example
<html>
<head>
<title>Simple D3 demo</title>
</head>
<body>
<div id="myDiv">
</div>
<script type="text/javascript" src="https://raw.github.com/mbostock/d3/master/d3.v2.js"></script>
<script type="text/javascript">
@Dudemullet
Dudemullet / data.json
Last active August 29, 2015 14:24
Peligro de inundacion
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dudemullet
Dudemullet / README.md
Created June 18, 2015 16:49
Peligro por inundacion por municipios

Este mapa muestra el peligro de inundacion por municipio de Mexico. Los datos son brindado por la CENAPRED y los puedes encontrar en MXAbierto.

@Dudemullet
Dudemullet / data.json
Created June 16, 2015 04:59
Simulacion de municipios Mexicanos
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dudemullet
Dudemullet / data.json
Last active August 29, 2015 14:23
Sensores Pluviales en Cuenca de Mexico
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dudemullet
Dudemullet / README.md
Last active August 29, 2015 14:23 — forked from diegovalle/README.md

How to create the topojson map:

curl -o estados.zip http://mapserver.inegi.org.mx/MGN/mge2010v5_0.zip
curl -o  municipios.zip http://mapserver.inegi.org.mx/MGN/mgm2010v5_0.zip
unzip estados.zip 
unzip municipios.zip
ogr2ogr states.shp Entidades_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
ogr2ogr municipalities.shp Municipios_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
topojson -o mx_tj.json -s 1e-7 -q 1e5 states.shp municipalities.shp -p state_code=+CVE_ENT,state_name=NOM_ENT,mun_code=+CVE_MUN,mun_name=NOM_MUN
@Dudemullet
Dudemullet / makersquare.md
Created August 11, 2014 23:36
useful links for the makersquare meetup