This file contains hidden or 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
// I search twitter for the following strings. I'm looking specifically for questions that start with | |
// 'do you' or 'are you', but do not contain certain key words. | |
_.when( | |
search('"do you" -what -why -who -where -which -when -how'), | |
search('"are you" -what -why -who -where -which -when -how') | |
) | |
.done(function(doYou,areYou) { | |
// I take the raw search results and I snip away | |
// the "do you" or "are you" and just grab the rest of the sentence. So "Are you a magician?" becomes | |
// "a magician". I collect a bunch of these. (I strip away "what" and similar, because "what are you |
This file contains hidden or 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
# Adapted from Brett Terpstra script : http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/ | |
# Fetches the 1024px version of an OS X app icon. The result is displayed in Pythonista's console, you can tap and hold to save or copy it. | |
# If you find any bug, you can find me @silouane20 on Twitter. | |
from PIL import Image | |
from StringIO import StringIO | |
import re | |
import requests | |
def find_icon(terms): |