This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#!/usr/bin/python | |
import sys | |
import xmlrpclib | |
postLimit = 1000 | |
if (len(sys.argv) < 4): | |
print "Usage: %s <blogAPIURL> <username> <password>" % sys.argv[0] | |
print "E.g.: %s http://example.com/xmlrpc.php daniel 1234" % sys.argv[0] |
The regex patterns in this gist are intended only to match web URLs -- http, | |
https, and naked domains like "example.com". For a pattern that attempts to | |
match all URLs, regardless of protocol, see: https://gist.github.com/gruber/249502 | |
# Single-line version: | |
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|s |
''' | |
Pythonista Find and Replace | |
=========================== | |
Notices | |
------- | |
Copyright 2013 Harry Jubb. | |
This program is free software: you can redistribute it and/or modify |
""" | |
Pythonist script to expand any URL surrounded by **'s | |
""" | |
import clipboard | |
import requests | |
import webbrowser | |
import urlparse | |
from urllib import quote, urlencode |
sex | ageYear | ageMonth | heightIn | weightLb | |
---|---|---|---|---|---|
f | 11.91667 | 143 | 56.3 | 85 | |
f | 12.91667 | 155 | 62.3 | 105 | |
f | 12.75 | 153 | 63.3 | 108 | |
f | 13.41667 | 161 | 59 | 92 | |
f | 15.91667 | 191 | 62.5 | 112.5 | |
f | 14.25 | 171 | 62.5 | 112 | |
f | 15.41667 | 185 | 59 | 104 | |
f | 11.83333 | 142 | 56.5 | 69 | |
f | 13.33333 | 160 | 62 | 94.5 |
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?later=yes&noui=yes&jump=close&tags=TAGS GO HERE&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=100,height=100')); | |
// Copy and paste the above into a new bookmark. Replace "TAGS GO HERE" with your tags. Presto! |
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
import os | |
from flask import Flask, render_template, request | |
import stripe | |
stripe_keys = { | |
'secret_key': os.environ['SECRET_KEY'], | |
'publishable_key': os.environ['PUBLISHABLE_KEY'] | |
} | |
stripe.api_key = stripe_keys['secret_key'] |
#!/usr/bin/python | |
import sys | |
import os | |
from urllib import urlencode | |
import subprocess | |
# setClipboardData is from <http://www.macdrifter.com/2011/12/python-and-the-mac-clipboard/>*/ | |
def setClipboardData(data): |