Skip to content

Instantly share code, notes, and snippets.

View pachadotdev's full-sized avatar
🎯
Focusing

Mauricio "Pachá" Vargas Sepúlveda pachadotdev

🎯
Focusing
View GitHub Profile
@pachadotdev
pachadotdev / index.html
Created December 26, 2016 04:30
Grupo 5 - Groserías no consideradas en Reservoir Dogs
<!doctype html>
<meta charset='utf-8'>
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id='tree_map'></div>
<script>
var swearwords = [
{
"word": "apeshit",
"freq": 1,
@pachadotdev
pachadotdev / index.html
Last active December 26, 2016 04:35
Grupo 5 - Variantes de Fuck en las películas de Tarantino
<!doctype html>
<meta charset='utf-8'>
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id='tree_map'></div>
<script>
var swearwords = [
{
"word": "fuck",
"freq": 213,
@pachadotdev
pachadotdev / index.html
Created December 26, 2016 04:56
Grupo 2 - Número de accidentes por década y su respectiva proporción entre accidentes de fuerzas armadas y accidentes civiles
<!doctype html>
<meta charset="utf-8">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id="viz"></div>
<script>
var sample_data = [
@pachadotdev
pachadotdev / index.html
Created December 26, 2016 05:00
Grupo 2 - Distribución de los accidentes de Fuerzas Armadas a lo largo del tiempo (1910-2009)
<!doctype html>
<meta charset="utf-8">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id="exports"></div>
<script>
// sample data array
@pachadotdev
pachadotdev / index.html
Created December 26, 2016 05:02
Grupo 2 - Accidentes por Año
<!doctype html>
<meta charset="utf-8">
<!-- load D3js -->
<script src="//d3plus.org/js/d3.js"></script>
<!-- load D3plus after D3js -->
<script src="//d3plus.org/js/d3plus.js"></script>
<!-- create container element for visualization -->
@pachadotdev
pachadotdev / index.html
Created December 26, 2016 05:03
Grupo 2 - Aerolíneas con más accidentes (1908-2009)
<!doctype html>
<meta charset="utf-8">
<!-- load D3js -->
<script src="//d3plus.org/js/d3.js"></script>
<!-- load D3plus after D3js -->
<script src="//d3plus.org/js/d3plus.js"></script>
<!-- create container element for visualization -->
@pachadotdev
pachadotdev / IMPORTJSON.gs
Last active January 4, 2017 14:52
Custom function to read json files in Google Sheets
/**
- ======================================================================================
- ImportJSON modified by @pachamaltese // noInherit by default + numeric format fixed
- ======================================================================================
/**
/*
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
@pachadotdev
pachadotdev / .block
Last active March 30, 2021 01:48
OEC's countries list and hs92 codes
license: mit
@pachadotdev
pachadotdev / r_python_homebrew.sh
Last active October 9, 2022 06:41
Install R and Python via Homebrew
# See http://pacha.hk/2017-07-12_r_and_python_via_homebrew.html
# XCode CLT
xcode-select --install
# Update Homebrew and add formulae
brew update
# Check for broken dependencies and/or outdated packages
brew doctor
@pachadotdev
pachadotdev / bowie_data.json
Last active May 27, 2017 01:19
David Bowie Collaborations
[
{
"Artist": "Stevie Ray Vaughan",
"Collaboration": "Let’s Dance",
"Genre": "Blues",
"Color": "#330000",
"Size": 1
},
{
"Artist": "The Philadelphia Orchestra",