Skip to content

Instantly share code, notes, and snippets.

View peterlozano's full-sized avatar

Pedro Lozano peterlozano

View GitHub Profile
@peterlozano
peterlozano / index.html
Last active August 29, 2015 14:04
Testing jsbin and d3.
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
@peterlozano
peterlozano / Makefile
Last active April 25, 2020 16:31
Spain map.
all: es.json
es.json: subunits.json places.json provinces.json
topojson \
-o es.json \
--id-property SU_A3 \
--properties name=NAME \
-- \
subunits.json \
provinces.json \
@peterlozano
peterlozano / Makefile
Last active August 29, 2015 14:04
Cádiz map with d3.js
all: cadiz.json
cadiz.json: ca_manzanas.json
topojson \
-o cadiz.json \
--id-property ID_MANZ \
--properties muni=INE_MUN \
-- \
ca_manzanas.json
@peterlozano
peterlozano / Makefile
Last active August 29, 2015 14:04
Leaflet + d3.js. Cádiz Map.
all: cadiz.json
cadiz.json: ca_manzanas.json
topojson \
-o cadiz.json \
--id-property ID_MANZ \
--properties muni=INE_MUN \
-- \
ca_manzanas.json
@peterlozano
peterlozano / index.html
Last active August 29, 2015 14:04
Logo animation
<!DOCTYPE html>
<html>
<head>
<title>Logo animation</title>
<script src="//d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
</head>
<body>
</body>
<script src="index.js"></script>
@peterlozano
peterlozano / Makefile
Last active January 16, 2025 23:20
Los Angeles Neighborhoods Map.
all: la.json
# Compose general json
la.json: la_county_neighborhoods_current.geojson
topojson \
-o la.json \
--id-property external_id \
--properties name=external_id \
-- \
la_county_neighborhoods_current.geojson
@peterlozano
peterlozano / Readme.md
Last active August 29, 2015 14:05
D3.js + Angular.js Demo.

Demo of how to create an Angular.js directive which provides a d3.js visualization.

The data used by the visualisation is provided by a controller and is synced by Angular.

@peterlozano
peterlozano / clearvarnish.sh
Created August 21, 2014 22:00
Clear the varnish cache in Azure.
#!/bin/sh
# Set this to the ssh key that you use with azure.
ssh-add ~/.ssh/bsp_rsa
# "azure" is a .ssh/config alias with all the host data.
ssh azure "sudo varnishadm 'ban.url .*'"
@peterlozano
peterlozano / index.html
Created October 1, 2014 09:13
Drupalcon Amsterdam 2014 Video list
<html>
<head>
<meta charset="UTF-8">
<title>DC Amsterdam Videos</title>
<script src="//underscorejs.org/underscore-min.js"></script>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<script id="tmpl-videos" type="text/template">
### Keybase proof
I hereby claim:
* I am peterlozano on github.
* I am peterlozano (https://keybase.io/peterlozano) on keybase.
* I have a public key whose fingerprint is A6E0 5BEA C349 D8CA E822 35E9 D10C 6EF3 BEA1 7A70
To claim this, I am signing this object: