This file contains hidden or 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 -*- | |
from bs4 import BeautifulSoup | |
import unicodecsv as csv | |
def export_notes_from(htmlFileName, csvFileName): | |
with open (htmlFileName) as html: | |
soup = BeautifulSoup(html, 'html.parser') | |
notes = [note.contents[0].strip('\r\n\ ') for note in soup.find_all('div', {'class', 'noteText'})] |
This file contains hidden or 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
# atom settings |
This file contains hidden or 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
Verifying I am +readerudite on my passcard. https://onename.com/readerudite |
This file contains hidden or 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
02 Aug 2013 11:30:56 [main] INFO Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability. | |
02 Aug 2013 11:30:56 [main] INFO Server is started at 8888 | |
02 Aug 2013 11:30:59 [nioEventLoopGroup-6-1] INFO Request received: | |
GET /hello HTTP/1.1 | |
Host: localhost:8888 | |
Connection: keep-alive | |
Cache-Control: max-age=0 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31 |
This file contains hidden or 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
language: java | |
jdk: oraclejdk6 | |
env: | |
matrix: | |
- ANDROID_TARGET=android-8 ANDROID_SDKS=android-8,build-tools-17.0.0 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi | |
- ANDROID_TARGET=android-10 ANDROID_SDKS=android-10,build-tools-17.0.0,sysimg-10 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi | |
- ANDROID_TARGET=android-15 ANDROID_SDKS=android-15,build-tools-17.0.0,sysimg-15 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi-v7a | |
- ANDROID_TARGET=android-17 ANDROID_SDKS=android-17,build-tools-17.0.0,sysimg-17 ANDROID_BUILD_TOOLS_VERSION=17.0.0 ANDROID_ABI=armeabi-v7a | |
before_install: |
This file contains hidden or 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 -*- | |
clippings = 'My Clippings.txt' | |
ankiFile = 'AnkiImport.txt' | |
def kindle_to_anki(): | |
try: | |
clippingsFile = open(clippings, 'r') | |
except IOError, e: | |
print '*** file open error: ', e |
This file contains hidden or 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 -*- | |
import win32com.client as win32 | |
fileDir = 'D:/Documents/Python/pythonic/python_ppt/' | |
fileName = 'wallpaper.pptx' | |
def add_wallpaper_slides(): | |
text = raw_input('Input the text:') |
This file contains hidden or 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 get_languages(self): | |
pattern = re.compile(r'<select name="languageCode" id="languageCode">([\s\S]*?)</select>') | |
var = pattern.search(self._html_ted) | |
if var is not None: | |
var = var.group(1) | |
else: | |
return None | |
var = [eachOption.strip() for eachOption in var.split('\n')] | |
var = var[:len(var)-1] |