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 python3 | |
# encoding: utf-8 | |
""" | |
I saw a similar script on the homepage of Miguel Grinberg (the Flask book guy), | |
but he was using webscraping. Here I use simple API calls instead. | |
The script takes the presentations of a Python conference and orders the | |
presentations in descending order by the number of youtube views. It | |
is an indicator about the popularity of a video. |
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 | |
""" | |
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 python2 | |
# encoding: utf-8 | |
""" | |
test if a URL is an image or not | |
""" | |
from __future__ import (absolute_import, division, | |
print_function, unicode_literals) |
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 | |
# 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 (jabba.laci@gmail.com) | |
""" |
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: |
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 python3 | |
""" | |
Extract data from http://users.atw.hu/std66/egyetem/monika.png . | |
It's from the game "Doki Doki Literature Club". | |
Tamás Sinku showed me this problem. He also described the | |
solution: take the middle of the image. A black pixel means 0, | |
while a white pixel means 1. Read it byte by byte and convert | |
it to text. You get a BASE64 string with some '\0' characters |
OlderNewer