Skip to content

Instantly share code, notes, and snippets.

View atestu's full-sized avatar

Alexandre Testu atestu

View GitHub Profile

I was reading this article on FiveThirtyEight and was a little shocked at the high homicide rate in Guatemala for the simple reason that I'm going there on a vacation in a couple of weeks. I also noticed, unsurprisingly, that homicides are much more common in poorer countries so I made these charts:

Linear chart

Logarithmic chart

I urge you to also check out the table below. As you can see, it's not as simple as "poor → homicides"…

The chart was made in Numbers and is very similar to my previous one on gay acceptance.

@atestu
atestu / Gruntfile.js
Last active August 29, 2015 13:59
Simple LESS Gruntfile.js
'use strict';
module.exports = function (grunt) {
// load all grunt tasks
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
watch: {
// if any .less file changes in directory "public/css/" run the "less"-task.
@atestu
atestu / get_sheet.php
Last active September 24, 2017 07:07
Use Google Sheets as a micro CMS in PHP
<?php
// based on http://sim.plified.com/2008/09/14/accessing-google-spreadsheet-with-php/
function cbi_get_spreadsheet ($key) {
$url = "http://spreadsheets.google.com/feeds/cells/$key/1/public/values";
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $url);
@atestu
atestu / Questions.md
Last active November 2, 2015 14:43
NYT asks: How do you hire?

Mary Laschinger of Veritiv Are they a team player? Are they an egomaniac? Are they here to help the enterprise succeed? Will they help their colleagues succeed? Or is it just about them and their team?

Jan Singer from Spanx How have you built teams? What frustrates you? What happens when you get frustrated? What was the biggest mistake you made and what happened after? How did you respond?