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
@valegui
valegui / index.html
Created December 19, 2016 22:13
Clasificación Internacional de Situación en el Empleo Abreviada según Sexo
<!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 =[
@valegui
valegui / index.html
Last active December 24, 2016 16:45
Horas promedio de trabajo doméstico no remunerado
<!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 data = [
@andrewheiss
andrewheiss / neighbors.R
Created February 2, 2016 16:12
Calculate which countries share a border
# Load libraries
library(dplyr)
library(tidyr)
# Map libraries
# You must install geos (http://trac.osgeo.org/geos/) and
# gdal (http://www.gdal.org/) first.
# Easy to do on OS X: `brew install geos gdal`
# Then install these packages from source
# install.packages(c("rgeos", "rgdal"), type="source")
# Enhanced Network Hosts File
# Authored by Carl Bennett <https://carlbennett.me>
#
# How To <https://support.rackspace.com/how-to/modify-your-hosts-file/>
# (I do not endorse Rackspace, the document is simply of decent quality.)
#
# This file is hereby released under the MIT license. A copy of the license can
# be found at: <https://opensource.org/licenses/MIT>
#
#!/bin/sh
# because gconftool doesn't have "append"
glist_append() {
local type="$1"; shift
local key="$1"; shift
local val="$1"; shift
local entries="$(
{
@jonschlinkert
jonschlinkert / markdown-cheatsheet.md
Last active April 11, 2024 04:45
A better markdown cheatsheet.
@kjoconnor
kjoconnor / md5sums.sh
Created March 20, 2012 23:07
Create md5sums file for Debian packages
# Assuming you're in the 'debian' directory and the directories (var, usr, etc.) are contained within
find -type f | egrep -v '^\./DEBIAN' | xargs --replace=hh -n1 md5sum "hh" | sed 's/\ \.\///' > DEBIAN/md5sums