Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Juan Pablo Kutianski jkutianski

🏠
Working from home
View GitHub Profile
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},
View iron-router-cheatsheet.coffee
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
@jkutianski
jkutianski / Pop Art Elements License.txt
Last active May 3, 2018
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 - http://creativecommons.org/licenses/by/3.0/.
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 (http://www.vecteezy.com/).
For more free resources, visit http://graphicflip.com/
- Monika Ratan
@jkutianski
jkutianski / area_selvatica_paises_v1km2_porci.csv
Last active Feb 19, 2016 — 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.
country_name,country_code,grupo,porc_1990,porc_1991,porc_1992,porc_1993,porc_1994,porc_1995,porc_1996,porc_1997,porc_1998,porc_1999,porc_2000,porc_2001,porc_2002,porc_2003,porc_2004,porc_2005,porc_2006,porc_2007,porc_2008,porc_2009,porc_2010,porc_2011,porc_2012,porc_2013,km2_1961,km2_1962,km2_1963,km2_1964,km2_1965,km2_1966,km2_1967,km2_1968,km2_1969,km2_1970,km2_1971,km2_1972,km2_1973,km2_1974,km2_1975,km2_1976,km2_1977,km2_1978,km2_1979,km2_1980,km2_1981,km2_1982,km2_1983,km2_1984,km2_1985,km2_1986,km2_1987,km2_1988,km2_1989,km2_1990,km2_1991,km2_1992,km2_1993,km2_1994,km2_1995,km2_1996,km2_1997,km2_1998,km2_1999,km2_2000,km2_2001,km2_2002,km2_2003,km2_2004,km2_2005,km2_2006,km2_2007,km2_2008,km2_2009,km2_2010,km2_2011,km2_2012,km2_2013,km2_2014
Afganistán,AFG,0,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.067824648,2.0678246
@jkutianski
jkutianski / index.html
Last active Nov 3, 2016 — forked from hepplerj/index.html
Solution for hepplerj’s Brush Removal with Button
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: sans-serif;
color: #000;
text-rendering: optimizeLegibility;
}
View LICENSE
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
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.
Preamble
@jkutianski
jkutianski / README.md
Last active Dec 28, 2015
A new attempt to add templating to d3.js
View README.md

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
jkutianski / README.md
Last active Dec 28, 2015
A new attempt to add templating to d3.js
View README.md

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
jkutianski / README.md
Last active Dec 27, 2015 — forked from JnBrymn/index.html
My attempt to add templating to d3.js
@jkutianski
jkutianski / README.md
Last active Dec 23, 2015 — forked from mbostock/.block
Scatterplot w/toggle label selectors
View README.md