Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacobo Tarragón jminuscula

View GitHub Profile
@jminuscula
jminuscula / unwatch_all.py
Last active Mar 11, 2021 — forked from jpstroop/unwatch_all.py
Unwatch all Github repositories.
View unwatch_all.py
#!/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):
View movie_releases.py
import csv
import requests
from datetime import datetime, timedelta
from io import StringIO
from tabulate import tabulate
DEFAULT_FIELDS = (
View keybase.md

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:

View async_producer_consumer.py
#!/usr/bin/env python3.5
import abc
import asyncio
import string
import random
class WordProducer(metaclass=abc.ABCMeta):
View asyncrunner.py
import asyncio
import time
from concurrent import futures
class AsyncRunner:
executor = futures.ThreadPoolExecutor(max_workers=5)
@jminuscula
jminuscula / wave.js
Last active Sep 4, 2015
ES6 generators test
View wave.js
"use strict";
(function() {
function* map(iterable, fn) {
for (let item of iterable) {
yield fn(item);
}
}
@jminuscula
jminuscula / tracks.js
Last active Aug 29, 2015
Javascript load and play audio files
View tracks.js
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 Aug 29, 2015
Python 3 - Name lookup example
View local.py
def foo():
x = 1
def bar():
x = 2
print(x)
bar()
foo()