Skip to content

Instantly share code, notes, and snippets.

Avatar
🧩
Focusing

agustín méndez matagus

🧩
Focusing
View GitHub Profile
View 📚 Currently reading books (5/11)
La conciencia uncida a la carne: ... ██████▌░░░░░░ 50%
La Peste ██▍░░░░░░░░░░ 19%
Diarios de bicicleta ░░░░░░░░░░░░░ 0%
Capital in the Twenty-First Century ▋░░░░░░░░░░░░ 5%
Mas brillante que el sol. Incursi... ██▍░░░░░░░░░░ 19%
View xlwt - excel colors generator
"""Build an .xls file with all background colors vs patterns possibilities"""
import xlwt
wb = xlwt.Workbook()
ws = wb.add_sheet("Colors")
ws.write(0, 0, "Colors/Patterns")
for pat_index in range(0, 16):
ws.write(0, pat_index + 1, str(pat_index))
View X11 Colors - Python List
"""List of named colors from http://cloford.com/resources/colours/namedcol.htm"""
colors = [u'#FFB6C1', u'#FFC0CB', u'#DC143C', u'#FFF0F5', u'#DB7093', u'#FF69B4', u'#FF1493', u'#C71585',
u'#DA70D6', u'#D8BFD8', u'#DDA0DD', u'#EE82EE', u'#FF00FF', u'#FF00FF', u'#8B008B', u'#800080',
u'#BA55D3', u'#9400D3', u'#9932CC', u'#4B0082', u'#8A2BE2', u'#9370DB', u'#7B68EE', u'#6A5ACD',
u'#483D8B', u'#F8F8FF', u'#E6E6FA', u'#0000FF', u'#0000CD', u'#00008B', u'#000080', u'#191970',
u'#4169E1', u'#6495ED', u'#B0C4DE', u'#778899', u'#708090', u'#1E90FF', u'#F0F8FF', u'#4682B4',
u'#87CEFA', u'#87CEEB', u'#00BFFF', u'#ADD8E6', u'#B0E0E6', u'#5F9EA0', u'#00CED1', u'#F0FFFF',
u'#E0FFFF', u'#AFEEEE', u'#00FFFF', u'#00FFFF', u'#008B8B', u'#008080', u'#2F4F4F', u'#48D1CC',
u'#20B2AA', u'#40E0D0', u'#7FFFD4', u'#66CDAA', u'#00FA9A', u'#F5FFFA', u'#00FF7F', u'#3CB371',
@matagus
matagus / .python-version
Created Mar 13, 2017
How to hostand run Spotify's Luigi scheduler on Heroku or Deis
@matagus
matagus / webworker-pool.js
Created Jan 30, 2011
A pool of webworkers
View webworker-pool.js
// From: https://gist.github.com/605541#file_js_web_worker_pool.js
// Web Worker Pool
// size is the max number of arguments
function WorkerPool(size) {
var workers = 0,
jobs = [];
// url: the url of the worker script
// msg: the initial message to pass to the worker
// cb : the callback to recieve messages from postMessage.
@matagus
matagus / hgrc
Created Jun 9, 2010
colorize your hg output <3
View hgrc
[extensions]
# enable color extension
color =
# enable extdiff extension (Extended Diff)
hgext.extdiff =
[extdiff]
# configure extended diff to use colordiff (requires colordiff installed in your system)
cmd.cdiff = colordiff
opts.cdiff = -uprN
View keybase.md

Keybase proof

I hereby claim:

  • I am matagus on github.
  • I am matagus (https://keybase.io/matagus) on keybase.
  • I have a public key ASCXdq8H6Al1ebefA8rQNyr-abqnhkfpxKMDtWJcCDwnkwo

To claim this, I am signing this object:

@matagus
matagus / index.html
Created Nov 14, 2015
Firefox Add-on installation page
View index.html
<script type="application/javascript">
<!--
function install (aEvent)
{
for (var a = aEvent.target; a.href === undefined;) a = a.parentNode;
var params = {
"Foo": { URL: aEvent.target.href,
IconURL: aEvent.target.getAttribute("iconURL"),
Hash: aEvent.target.getAttribute("hash"),
toString: function () { return this.URL; }
@matagus
matagus / .vimrc
Last active Apr 3, 2018
My current .vimrc file. Using vim-bundle, with support for Python, Django, Markdown, HTML, Javascript, Scala, node.js and CSS.
View .vimrc
" disable vi compatibility
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
@matagus
matagus / APIs-webliography.md
Last active Mar 12, 2018
Links to posts, talks and slides talking about API design, arquitecture, testing, tools, etc
You can’t perform that action at this time.