Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.
q
The query string to convert to audio
tl
Translation language, for example, ar for Arabic, or en-us for English
| import smtplib | |
| sendto = ['[email protected]', '[email protected]', '[email protected]'] #收件人 | |
| no = [1,2,3] #编号 | |
| gmail_username = '[email protected]' | |
| gmail_password = 'password' | |
| smtpserver = smtplib.SMTP("smtp.gmail.com", 587) | |
| smtpserver.ehlo() |
| def _thumbnail_image(self, body, size): | |
| try: | |
| im = Image.open(StringIO(body)) | |
| # rotate image according rotation meta of this image | |
| # for orientation in ExifTags.TAGS.keys(): | |
| # if ExifTags.TAGS[orientation] == 'Orientation' : break | |
| orientation = 274 # get 274 through upper loop | |
| try: | |
| exif = im._getexif() |
Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.
q
The query string to convert to audio
tl
Translation language, for example, ar for Arabic, or en-us for English
| @-webkit-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } | |
| 100% { background-color: #ccffff; } } | |
| @-moz-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } | |
| 100% { background-color: #ccffff; } } | |
| @-ms-keyframes bgcolor { 0% { background-color: #ffccf2; } | |
| 50% { background-color: #ccffcc; } |
| #!/bin/bash | |
| OPENSSL_VERSION="1.0.1g" | |
| curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
| tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
| mv openssl-$OPENSSL_VERSION openssl_i386 | |
| tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
| mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
| cd openssl_i386 |
| @mixin background-image-retina($file, $type, $width, $height) { | |
| background-image: url($file + '.' + $type); | |
| @media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { | |
| & { | |
| background-image: url($file + '@2x.' + $type); | |
| -webkit-background-size: $width $height; | |
| } | |
| } | |
| } |
| import redis | |
| import web | |
| SESSION = 'SESSION:' | |
| class RedisStore(web.session.Store): | |
| """Store for saving a session in redis: | |
| import rediswebpy | |
| session = web.session.Session(app, rediswebpy.RedisStore(), initializer={'count': 0}) |
| <!DOCTYPE html> | |
| <meta charset=utf-8> | |
| <meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| <meta name=apple-mobile-web-app-capable content=yes> | |
| <meta name=apple-mobile-web-app-status-bar-style content=black> | |
| <title>Test fullscreen</title> | |
| <style> | |
| html, body { | |
| margin: 0; | |
| padding: 0; |
| // REFERENCE UNICODE TABLES: | |
| // http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml | |
| // http://www.tamasoft.co.jp/en/general-info/unicode.html | |
| // | |
| // TEST EDITOR: | |
| // http://www.gethifi.com/tools/regex | |
| // | |
| // UNICODE RANGE : DESCRIPTION | |
| // | |
| // 3000-303F : punctuation |
| #用正则简单过滤html的<>标签 | |
| import re | |
| str = "<img /><a>srcd</a>hello</br><br/>" | |
| str = re.sub(r'</?\w+[^>]*>','',str) | |
| print str |