#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from mastodon import Mastodon,StreamListener
import sqlite3 as lite
from bs4 import BeautifulSoup
sample :drum_splash_soft | |
define :paradiddle_quarters do | |
sample :drum_snare_soft,amp: choose([1,0.8,0.8,0.6,0.5]), decay: 3 | |
sleep 0.25 | |
sample :drum_snare_hard,amp: choose([0.8,0.8,0.6,0.5]), decay: 3 | |
sleep 0.25 | |
sample :drum_snare_soft,amp: choose([0.8,0.8,0.6,0.5]), decay: 3 | |
sleep 0.25 | |
sample :drum_snare_soft,amp: choose([0.8,0.8,0.6,0.5]), decay: 3 |
tell application "TextEdit" | |
activate | |
make new document at the front | |
end tell | |
tell application "System Events" | |
repeat 10 times | |
key code 53 using {option down} | |
key code 49 | |
end repeat | |
key code 53 using {option down} |
I hereby claim:
- I am vgan on github.
- I am vgan (https://keybase.io/vgan) on keybase.
- I have a public key whose fingerprint is D821 D6D1 AFB2 EAB9 1EBD EA9E 4BF2 A256 0E7D 8C35
To claim this, I am signing this object:
Arnie Commentary is a Python based bot which procedurally finds and captions images in the style of an Arnold Schwarzenegger DVD commentary.
The bot first selects a random Arnold Scwarzenegger movie from a list of all his movies and uses Movie_Title + " Arnold Schwarzenegger Sceencap" as a Bing image API query.
Next, it runs OCR locally using Tesseract - if more than a couple of words are detected the image is deleted and it starts over.
The image is then posted to Microsoft Project Oxford Describe Endpoint and a basic description is returned (usually).
Next it uses ImageMagick to check the orientation. If its not landscape, again it's deleted and starts over.
The Lunch Oracle is a Bot to tell you where to eat lunch when you can't decide.
Usage:
- Tweet or DM your location info and receive a recommendation back. Results are limited to a citywide area (800 Meters/ 1/2 Mile Radius)
- Tweet location can be in the following formats:
- zip / postal code ex:
90027
- Neighborhood Name, State/ Province
- It may work in its own:
Los Feliz
- It can help to add State/ Province:
Los Feliz, CA
- zip / postal code ex:
- ...and Country to be even more specific:
Los Feliz, CA USA