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
Sun Jan 25 19:41:15 2015 | |
:: | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Sun Jan 25 19:41:15 2015 | |
:: ---------------------------------------------- | |
Sun Jan 25 19:41:15 2015 | |
:: GetSponsorOffer(), started 1/25/2015 at 11:41 |
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
# -*- coding: utf-8 -*- | |
__author__ = 'Delbert' | |
# Download files from an http server which allows traversing. | |
# Python 3 Only. | |
# requests and BeautifulSoup4 are required. | |
from bs4 import BeautifulSoup | |
import urllib | |
import requests | |
import os |
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
javascript:((function(){document.body.innerHTML=document.body.innerHTML+"<div%20id='MyQrCode'%20style='display:block;z-index:99999;position:fixed;top:0;right:0;'%20onclick='javascript:(function(){var%20MyQrCode=document.getElementById("MyQrCode");MyQrCode.parentNode.removeChild(MyQrCode);}())'><img%20src='http://png.2vma.theucd.com/chart?chl="+escape(document.location.href)+"&chs=200x200&cht=qr&chld=%7C1&choe=UTF-8'></div>";})()); |
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
# -*- coding:utf-8 -*- | |
__author__ = 'Delbert' | |
# for Python 3.4 and Python 2.7 | |
# Pillow and request module are needed | |
import requests | |
import os | |
from PIL import Image | |
save_path = "notre-dame-cathed1" |
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
# coding:utf-8 | |
# Python 3.4 | |
# Download all js and css files from SyntaxHighlighter | |
# __author__ = Delbert | |
from urllib import request | |
url_arr = ["http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css", | |
"http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js", | |
"http://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js", | |
"http://alexgorbatchev.com/pub/sh/current/scripts/shBrushAS3.js", |
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
def is_prime(n): | |
'Return True if n is a prime number otherwise return False' | |
if n == 0 or n == 1: | |
return False | |
else: | |
for i in range(2, n): | |
if n%i == 0: | |
return False | |
return True | |
NewerOlder