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
t = '''Inbox: | |
Project 01: | |
- Task 01 | |
this is a comment | |
this is still a comment associate with task 01 | |
- sub 01 | |
- sub 02 | |
- sub 05 | |
- Task 02 |
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
ply_url = 'https://pypi.python.org/packages/source/p/ply/ply-3.4.tar.gz' | |
slimit_url = 'https://pypi.python.org/packages/source/s/slimit/slimit-0.8.1.zip' | |
print 'Downloading SlimIt...' | |
from urllib import urlretrieve | |
import tarfile | |
import zipfile | |
import shutil | |
import os | |
try: |
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
# This script uses Evernote's API to create a new template note to be used in meetings. | |
# The template includes the following fields: Date, Time, Attendance, Objective, Remarks and | |
# Action Items. The fields are shown using Evernote Markup Language. It also automatically | |
# adds the the date when the note was created at the end of the note's title. | |
# | |
# When run, it lists all notebooks in a user's account (just as reference), then | |
# asks for the title of the new note (automatically adding the current date at the | |
# end in ISO format YYYY-MM-DD), then asks for the tags to be assigned to the note and | |
# creates it in a pre-defined notebook (hard coded in the ntbkName variable below). | |
# |
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
# Display the current clipboard text in full screen mode | |
import clipboard, console, scene | |
clipText = clipboard.get() | |
if not clipText: | |
clipText = """Hang up your cellphone and drive your car!!!""" | |
zclipText = """Please take me home...""" | |
class MyScene(scene.Scene): | |
def setup(self): | |
(imageName, imageSize) = self.getImageNameAndSize() |
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
import socket | |
import webbrowser | |
import re | |
html = """ | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> |
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
# Update: This looks like a far better solution... | |
# `console.set_idle_timer_disabled(flag)` | |
# Disable or enable the idle timer (which puts the device to sleep after a certain period of inactivity). | |
# noDoze.py -- keep relaunching yourself to prevent | |
# your iOS device from falling asleep. | |
import notification, time, urllib | |
def argsString(argv): |
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
# alias last and save | |
# use `als c NAME` to chop off the last argument (for filenames/patterns) | |
als() { | |
local aliasfile chop x | |
[[ $# == 0 ]] && echo "Name your alias" && return | |
if [[ $1 == "c" ]]; then | |
chop=true | |
shift | |
fi | |
aliasfile=~/.bash_it/aliases/custom.aliases.bash |
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
Moved to: https://github.com/cclauss/Pythonista_scene |
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
# Adapted from Brett Terpstra script : http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/ | |
# Fetches the 1024px version of an OS X app icon. The result is displayed in Pythonista's console, you can tap and hold to save or copy it. | |
# If you find any bug, you can find me @silouane20 on Twitter. | |
from PIL import Image | |
from StringIO import StringIO | |
import re | |
import requests | |
def find_icon(terms): |