Skip to content

Instantly share code, notes, and snippets.

View palamago's full-sized avatar
💎

Pablo H. Paladino palamago

💎
View GitHub Profile
@palamago
palamago / subnational_prt_communities.json
Last active May 17, 2024 12:15
Portugal Subnat Maps
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@palamago
palamago / lac.topojson
Created February 20, 2023 19:14
Test LAC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@palamago
palamago / usa-cdc-data.json
Last active July 20, 2023 19:52
d3plus USA map test
{"data":[{"ID State":"11","State":"District of Columbia","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.6811666666666668},{"ID State":"17","State":"Illinois","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.8040625},{"ID State":"26","State":"Michigan","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.9390625000000001},{"ID State":"39","State":"Ohio","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.7641249999999998},{"ID State":"55","State":"Wisconsin","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.8074545454545455},{"ID State":"19","State":"Iowa","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.8051818181818181},{"ID State":"20","State":"Kansas","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.7943636363636365},{"ID State":"27","State":"Minnesota","ID Year":2020,"Year":"2020","Standardized Infection Ratio":0.8389090909090909},{"ID State":"29","State":"Missouri","ID Year":2020,"Year":"2020","Standardized Infection Rat
@palamago
palamago / Component.jsx
Last active August 5, 2021 11:13
HelmetWrapper example
//Usage: title, desc
<HelmetWrapper info={{title: "", desc: "", img: "",}} />
@palamago
palamago / browser-language-codes.js
Last active June 26, 2020 21:30 — forked from wpsmith/browser-language-codes.js
JS: Object of Browser Language Codes
// <![CDATA[
var langCodes = {
"af": "Afrikaans",
"sq": "Albanian",
"an": "Aragonese",
"ar": "Arabic (Standard)",
"ar-dz": "Arabic (Algeria)",
"ar-bh": "Arabic (Bahrain)",
"ar-eg": "Arabic (Egypt)",
"ar-iq": "Arabic (Iraq)",
@palamago
palamago / resize.sh
Created October 12, 2018 19:51
Iterate recursively over folders and convert every image
#!/bin/bash
function loop() {
shopt -s nullglob
for dir in $1/*/
do
dir=${dir%*/}
if [ -d "$dir" ]
then
@palamago
palamago / comunas.js
Last active October 3, 2016 16:07
Geo shape to square transform
var COMUNAS = {"type": "FeatureCollection", "features": [{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-58.39521,-34.57219],[-58.39482,-34.57231],[-58.39432,-34.57229],[-58.39331,-34.57222],[-58.39321,-34.57221],[-58.3928,-34.57224],[-58.39279,-34.57224],[-58.39134,-34.57302],[-58.39123,-34.57309],[-58.38496,-34.57649],[-58.38472,-34.57648],[-58.38418,-34.57645],[-58.38394,-34.57643],[-58.38341,-34.5764],[-58.38291,-34.57575],[-58.38289,-34.5757],[-58.38288,-34.57565],[-58.38289,-34.57558],[-58.3829,-34.57556],[-58.38291,-34.57552],[-58.38295,-34.57548],[-58.38297,-34.57545],[-58.38305,-34.57539],[-58.3831,-34.57537],[-58.38316,-34.57534],[-58.38645,-34.57344],[-58.38647,-34.57343],[-58.39118,-34.57071],[-58.3913,-34.57064],[-58.39132,-34.57062],[-58.39132,-34.57061],[-58.39134,-34.57057],[-58.39133,-34.57054],[-58.39132,-34.57052],[-58.39131,-34.5705],[-58.39117,-34.57027],[-58.39106,-34.57009],[-58.39104,-34.57007],[-58.39098,-34.57001],[-58.39094,-34.56999],[-58.3909,-34.56996],[-58
@palamago
palamago / index.html
Last active March 22, 2016 23:23
Convert Flat data to Flare data (children) structure using just D3.js
<html lang="en">
<head>
</head>
<body>
<h1>Flat data to Flare (children) structure using only D3.js</h1>
<p>See console</p>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="main.js" charset="utf-8"></script>
@palamago
palamago / ws.php
Created August 9, 2013 19:47
Agenda Cultural WS
<?php
require_once('AppTask.php');
class AgendaCulturalTask extends AppTask {
public function retrieveData($filter){
try{
$todayUrl = 'http://agendacultural.buenosaires.gob.ar/webservice/response/client.php?Method=GetListSearchToday&IdMixEventoLugar=&Tipo=&Titulo=&Resumen=&Hoy=TRUE&Manana=&EsteFinDeSemana=&ProximoFinDeSemana=&EnEsteMes=&DestacadoHome=&MarcaProximosEventos=&Imagen=&AlbumFlickr=&Facebook=&Youtube=&Twitter=&IdEventoPadre=&IdEventosRelacionados=&Hora=&Minutos=&IdTipoEvento=&DestacadoBoxPrimario=&Latitud=&Longitud=&OrdenarPor=&Orden=&Limit=&Offset=';
$data = file_get_contents($todayUrl);