Skip to content

Instantly share code, notes, and snippets.

View pa-w's full-sized avatar

Paola Villarreal pa-w

View GitHub Profile
@pa-w
pa-w / README.md
Created July 5, 2016 18:59
Test d3 v4

Test d3 v4

@pa-w
pa-w / README.md
Last active June 9, 2016 00:12
Boston Stop and Frisk: Frisks, Searches and Summons issued by race

Boston Stop and Frisk visualization

@pa-w
pa-w / README.md
Last active June 3, 2016 01:37
Scatterplot

Based on Lisa Charlotte Rost's (@lisacrost) challenge.

@pa-w
pa-w / README.md
Last active February 14, 2017 22:55
Countries visualization demo

This demo shows how to do an animated & interactive chart visualizing the world's countries and their population, life expectancy and fertility rate using ANT (The Augmented Narrative Toolkit)

What is innovative about Ant? Well, most of the interactive parts of this chart (the timer and its start and stop, the chart itself, its elements, its labels among other things like data downloading and processing AND the interaction between them) are "programmed" in HTML5 without having to code in JavaScript. This significantly lowers the barriers of entry for data visualization.

The only JavaScript code is dedicated to quantify data using d3 scales (for instance: if country is from South Asia, its fill collor will be yellow, if it has a life expectancy of 35 years, its Y position will be 150 and if it has a fertility rate of 4 it will have a X position of 100) Inspired by 2006, Hans Rosling TED Talk: The best stats you've ever seen.

Demo

@pa-w
pa-w / README.md
Last active May 31, 2016 19:16
Ant Demo 1

Demo

using System;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using MonoTouch.AVFoundation;
using MonoTouch.CoreAnimation;
using MonoTouch.ObjCRuntime;
using System.Threading;
using System.IO;
namespace MyProject {
@pa-w
pa-w / gist:79fec94db5c79359c444
Last active August 29, 2015 14:08
Código para obtener la disponibilidad de la $estacion de ecobici
<?
function getDisponibilidad($estacion) {
$ch = curl_init("https://www.ecobici.df.gob.mx/CallWebService/StationBussinesStatus.php"); // Ecobici's endpoint. Returns an HTML.
curl_setopt($ch, CURLOPT_POST, true);
$data = array('idStation' => $estacion); // idStation set
// CURL's options...
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
[Aug-29 12:02 PM] Paola Villarreal: Guys, which versions of X.iOS support the new namespaces? (without MonoTouch.*)
[Aug-29 12:03 PM] PJ Bearman: Hi @spouliot, we're preparing 44bfd26981392fe1bc98768a4f5dc944f07d8e8c for Alpha release - just wanted to make sure there isn't an issue I'm unaware of with that version.
[Aug-29 12:04 PM] PJ Bearman: @paw 7.4.0, ios8-7.4.0, and master
[Aug-29 12:04 PM] PJ Bearman: You can be using http://storage.bos.internalx.com/monotouch-mlion-ios8-7.4.0/44/44bfd26981392fe1bc98768a4f5dc944f07d8...and http://storage.bos.internalx.com/monodevelop-lion-monodevelop-5.4-branch/f5/f52e44ab76cda9d49cde21c5...
[Aug-29 12:05 PM] Zoltan Varga: @PJBearman it would be nice to include 59ffc61f93b5d287df67957947bc87f472ee2ccc, it fixes some llvm/arm64 failures
[Aug-29 12:05 PM] Paola Villarreal: weird, I have 7.4.0.108 and don't have the new namespaces
[Aug-29 12:05 PM] PJ Bearman: I think I saw that was just committed - I think that's too late Zoltan
[Aug-29 12:06 PM] PJ Bearman: @paw using X
Paolas-MacBook-Pro-2:2.1 paw$ cat /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.CSharp.targets
<!--
***********************************************************************************************
Xamarin.iOS.CSharp.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
This file imports the version- and platform-specific targets for the project importing