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 | |
""" | |
Origin: http://creatingwithcode.com/howto/face-detection-in-static-images-with-python/ | |
Patched for Ubuntu 11.04 (the location of the XML file is different). | |
Installation: | |
sudo apt-get install python-opencv libcv-dev opencv-doc | |
""" |
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 | |
""" | |
Not good, the thread doesn't stop... | |
""" | |
import sys | |
import atexit | |
from time import sleep |
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/python | |
""" | |
Random Python projects from GitHub. | |
The first one is a popular one from the Top 100. | |
The second one is from the rest. | |
""" | |
import random |
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 | |
""" | |
Play http://www.google.com/doodles/hurdles-2012 . | |
Code based on https://gist.github.com/3287367 . | |
""" | |
import time | |
from autopy import key |
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 | |
import requests | |
from bs4 import BeautifulSoup | |
import termcolor | |
BOT_URL = 'http://www.pandorabots.com/pandora/talk?botid=a847934aae3456cb' | |
def main(): |
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 | |
""" | |
Download PyCon US 2012 videos in a multithreaded way. | |
Requirement: youtube-dl script. | |
written by Jabba Laci, 2013 ([email protected]) | |
http://pythonadventures.wordpress.com/ | |
PyCon US 2012 videos: http://pyvideo.org/category/17 |
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 | |
# encoding: utf-8 | |
""" | |
Facebook is recently full of szilvasbukta.com links. However, if | |
you want to see an image, you must like it. WTF? This script extracts | |
the hidden image and opens it in your browser (in Firefox, by default). | |
dropped together by Jabba Laci ([email protected]) | |
""" |
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
xBVcONf.jpg | |
lCOiFrN.jpg | |
QbFUTKA.jpg | |
v47ZH4i.jpg | |
86mqrYV.jpg | |
Cvk8T.jpg | |
FMJmGz4.jpg | |
lsyYPhu.jpg | |
Whoctyt.jpg | |
j28ALSI.jpg |
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 python2 | |
""" | |
Automate your browser via telnet. | |
Requirements: | |
* Firefox | |
* MozRepl add-on (https://addons.mozilla.org/en-US/firefox/addon/mozrepl/) | |
- activate the add-on (under Tools -> MozRepl, "Start" and "Activate on startup") | |
Documentation of gBrowser: |
OlderNewer