Skip to content

Instantly share code, notes, and snippets.

View jminuscula's full-sized avatar

Jacobo Tarragón jminuscula

View GitHub Profile
@jminuscula
jminuscula / unwatch_all.py
Last active March 11, 2021 17:32 — forked from jpstroop/unwatch_all.py
Unwatch all Github repositories.
#!/usr/bin/env python
#
# Unwatch from all Github repositories. Note that it will only work with up to
# 100 repos at a time (pagination is not implemented), so you may need to run
# more than once.
#
# Depends:
# requests : http://docs.python-requests.org/en/master/
#
# Output (to stdout):
import csv
import requests
from datetime import datetime, timedelta
from io import StringIO
from tabulate import tabulate
DEFAULT_FIELDS = (

Keybase proof

I hereby claim:

  • I am jminuscula on github.
  • I am jminuscula (https://keybase.io/jminuscula) on keybase.
  • I have a public key ASBVMIC24Ow83HC9WxRcKiDoBfpIiI6lxiB8BYiF-60NUAo

To claim this, I am signing this object:

@jminuscula
jminuscula / async_producer_consumer.py
Last active August 30, 2016 11:25
async / await example
#!/usr/bin/env python3.5
import abc
import asyncio
import string
import random
class WordProducer(metaclass=abc.ABCMeta):
import asyncio
import time
from concurrent import futures
class AsyncRunner:
executor = futures.ThreadPoolExecutor(max_workers=5)
@jminuscula
jminuscula / wave.js
Last active September 4, 2015 14:31
ES6 generators test
"use strict";
(function() {
function* map(iterable, fn) {
for (let item of iterable) {
yield fn(item);
}
}
@jminuscula
jminuscula / tracks.js
Last active August 29, 2015 14:10
Javascript load and play audio files
function TrackManager(trackFiles, onloadCallback){
var audioContext,
tracks = {},
loadedTracks = [];
window.AudioContext = window.AudioContext||window.webkitAudioContext;
audio_context = new AudioContext();
function load_track(name, url){
@jminuscula
jminuscula / local.py
Last active August 29, 2015 13:58
Python 3 - Name lookup example
def foo():
x = 1
def bar():
x = 2
print(x)
bar()
foo()