I hereby claim:
- I am erwinv on github.
- I am edjv (https://keybase.io/edjv) on keybase.
- I have a public key ASAjIlDL7fnaGAxAOeyoJawY-1_E7D5gWOtJiekjMJTLuAo
To claim this, I am signing this object:
This gist contains the plotting script and source dataset used to make the Philippine 2016 VP Election Results animation | |
posted on Facebook on May 12, 2016 at this link: | |
>> https://www.facebook.com/reinabelle/posts/10153876907008855?notif_t=like¬if_id=1463020148550623 | |
and also available at: | |
>> http://giphy.com/gifs/labanleni-3oEjHTx26SAc2O3E2s | |
Election tally data were taken (manually) from the GMA News site: |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env node | |
const fs = require('fs') | |
const path = require('path') | |
const readline = require('readline') | |
const promisify = require('util').promisify || function(fn) { | |
return function(...args) { | |
return new Promise((resolve, reject) => { | |
fn(...args, (err, ...results) => { | |
if (err) reject(err) |
#!/usr/bin/env node | |
const fs = require('fs') | |
const path = require('path') | |
const readline = require('readline') | |
const R = require('ramda') | |
const Bacon = require('baconjs') | |
const Promise = require('bluebird') |
# Maintainer: Erwin Villejo <erwin.villejo@gmail.com> | |
pkgname=lift-cli | |
pkgver=0.1 | |
pkgrel=1 | |
pkgdesc="Java libraries and command line tools for the 'Algorithms, 4th Edition' Princeton course." | |
arch=('any') | |
url="https://lift.cs.princeton.edu" | |
license=('unknown') | |
depends=('jdk-openjdk' 'sh' 'bash') | |
source=('https://lift.cs.princeton.edu/java/linux/lift-cli.zip') |
#include <functional> | |
#include <iostream> | |
#include <memory> | |
#include <deque> | |
class Subscription | |
{ | |
public: | |
Subscription() : active_(true) | |
{ |
#include <cstdint> | |
#include <optional> | |
#include <string> | |
std::optional<std::string> getNetMaskFromSubnetSize(uint64_t subnetSize) | |
{ | |
auto isPowerOf2 = [](uint64_t num) { return num > 0 and (num & (num - 1)) == 0; }; | |
if (not isPowerOf2(subnetSize)) | |
return std::nullopt; |
#include <functional> | |
#include <iostream> | |
#include <memory> | |
using namespace std; | |
class A : public enable_shared_from_this<A> | |
{ | |
public: | |
A() : data_(make_unique<int>(0)) |
const fs = require('fs') | |
const readline = require('readline') | |
const zlib = require('zlib') | |
function simulateBinaryLogger(filename, done) { | |
const outputFile = fs.createWriteStream(filename + '.gz', 'binary') | |
const gzip = zlib.createGzip() | |
gzip.pipe(outputFile) | |
outputFile.on('close', done) |
#include <iostream> | |
#include <string> | |
#include <type_traits> | |
#include <vector> | |
using StringVec = std::vector<std::string>; | |
namespace | |
{ |