Skip to content

Instantly share code, notes, and snippets.

Working from home

Juan Pablo Kutianski jkutianski

Working from home
View GitHub Profile
jkutianski / MonthlySales.json
Created January 27, 2021 03:34
View MonthlySales.json
{"month":20130101, "sales":38},
{"month":20130201, "sales":35},
{"month":20130301, "sales":24},
{"month":20130401, "sales":21},
{"month":20130501, "sales":34},
{"month":20130601, "sales":45},
{"month":20130701, "sales":67},
{"month":20130801, "sales":1},
{"month":20130901, "sales":54},
jkutianski /
Last active August 15, 2019 21:38
Proyección Gauss Kruger Argentina en D3.js

Para la Argentina la proyección oficial es la Gauss-Kruger, y esta difiere bastante de la proyección Mercator que es normalmente utilizada en mapas digitales. Si queremos desplegar el territorio argentino de manera de lograr una representación armoniosa que conserve las formas y áreas, lo recomendable es usa Gauss-Kruger.

Transverse Mercator vs Mercator

En D3.js no esta soportada esta proyeccion pero se puede optar por la proyección Mercator transversa d3.geo.transverseMercator() que es la base para la definición de la referencia cartográfica Gauss-Kruger. Esta proyección está definida dentro del plugin d3.geo.projection.js por lo que deberá ser cargado junto con d3.js.

Para poder calcular los parámetros necesarios para aplicar esta proyección es necesario calcular el centro geográfico de la Argentina continental, que está comprendida entre lo

# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio:
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
jkutianski / Pop Art Elements License.txt
Last active May 3, 2018 03:36
Reading SVG files with D3js
View Pop Art Elements License.txt
These Pop Art Elements is licensed under Creative Commons Attribution 3.0 Unported License -
Under this license, you are free to copy and redistribute the material in any medium or format, remix, transform and build upon the material for any purpose, even commercially. In exchange, you must give appropriate credit to Vecteezy (
For more free resources, visit
- Monika Ratan
jkutianski / LICENSE
Last active December 18, 2017 17:14
D3 Clock
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
jkutianski / index.html
Last active November 3, 2016 19:07 — forked from hepplerj/index.html
Solution for hepplerj’s Brush Removal with Button
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
body {
font-family: sans-serif;
color: #000;
text-rendering: optimizeLegibility;
jkutianski / area_selvatica_paises_v1km2_porci.csv
Last active February 19, 2016 01:07 — forked from HuVas/area_selvatica_paises_v1km2_porci.csv
Correlación del porcentaje del territorio forestal vs. su extensión en millones de km2. Año 2013.
View area_selvatica_paises_v1km2_porci.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 81 columns, instead of 24. in line 1.
jkutianski /
Last active December 28, 2015 20:19
A new attempt to add templating to d3.js

D3.js templating test based on my previous solution of John Berryman's attempt.

The HTMLTemplateElement is currently supported in Chrome, Firefox and Opera (15+) for now. See Eric Bidelman HTMLTemplateElement tuturial

I change the idea of use HTMLTemplateElement.content because is only supported by 3 browsers . I'm using HTMLElement.innerHTML to read the template content and DOMParser() to inject the result into the DOM. To hide the content of <template> (HTMLUnknownElement) on other browsers (Safari, IE, etc) I add a CSS rule with display:none. On browsers that support HTMLTemplateElement the <script> isn't fired when the browser parse the document, but is different on HTMLUnknownElements. If someone know how to break the script execution on HTMLUnknownElements please send me a tweet @baldpower

[Fork me

jkutianski /
Last active December 28, 2015 08:59
A new attempt to add templating to d3.js

D3.js templating test based on my previous solution of John Berryman's attempt.

ICahnHaz.js uses <script></script> and I preffer the idea of Eric Bidelman. The <template> element is currently supported in Chrome, Firefox and Opera (15+)for now.

Because the use of innerHTML run-time string parsing of user-supplied data can easily lead to XSS vulnerabilities and isn't supported by SVGElement, I use now XMLSerializer() and DOMParser() to inject the templates into the DOM. The callTemplate function uses querySelector and isn't limitted to Mustache.

Fork me @ GITHUB

jkutianski /
Last active December 27, 2015 12:49 — forked from JnBrymn/index.html
My attempt to add templating to d3.js