This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from operator import itemgetter | |
from PIL import Image, ImageDraw, ImageFont | |
from matplotlib import font_manager | |
from multiprocessing import Pool | |
import numpy as np | |
import os.path | |
# Make a lowercase + uppercase alphabet. | |
alphabet = 'abcdefghijklmnopqrstuvwxyz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
## based on https://gist.github.com/1910413 updated for Sublime Text 3 | |
import sublime | |
import sublime_plugin | |
import subprocess | |
class PromptRunExternalCommand(sublime_plugin.WindowCommand): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop: function(howmany){ | |
if ( howmany <= 0 ) { | |
if ( this.empty() ) { | |
return new Stream(); | |
} | |
return new Stream( this.head(), this.tail() ); | |
} | |
// Otherwise we could check only once if it's empty and omit the exception. |