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
USERNAME = 'your user name here' | |
PASSWD = 'your password here' | |
DOC_NAME = 'Document Name' | |
import sys | |
import gdata.docs | |
import gdata.docs.client | |
import gdata.docs.data |
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
__author__ = 'Serge Boyko' | |
__date__ = '12/04/13' | |
__email__ = '[email protected]' | |
# Read issues from a google spreadsheet and create them in a repository | |
# on GitHub | |
# TODO: | |
# * add validation step to ensure GitHub won't complain about non-existing | |
# fields | |
# * add two-way synchronization |
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 Image, ImageDraw, ImageFont | |
import clipboard | |
# Simple script to create SysML frame around the image | |
# Define non-configurable options here | |
H_TEXT_OFFSET = 20 | |
V_TEXT_OFFSET = 20 | |
H_CUT_OUT = 20 | |
V_CUT_OUT = 20 |
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
username = 'your email' | |
passwd = 'your pass' | |
doc_name = 'PV data' | |
import sys | |
sys.path.append('../gdata') | |
import gdata.docs | |
import gdata.docs.service | |
import gdata.spreadsheet.service |
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
# Install gdata and its samples. | |
# To use the library add it to the system path | |
# Due to some issues with cElementTree implementation, please visit __init__ | |
# in the atom directory, comment out lines 47-56 and replace with the line: | |
# | |
# from xml.etree import ElementTree | |
# The same operation should also be done in core.py, lines 25-34. | |
# | |
# Otherwise gdata won't work correctly. |
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
# Script to install greencal and required libraries | |
import tarfile | |
import shutil | |
import urllib | |
import requests | |
import os | |
import json | |
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
'''Editor action to open recent files from the list''' | |
__date__ = '10-March-2013' | |
__author__ = 'mcsquaredjr' | |
__version__ = '0.1' | |
import os | |
import editor | |
# Length of the list |
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
# Simple installer script for using the google-api-client in Pythonista | |
# | |
# This script should be run from the root directory. In order to keep things | |
# tidy, it installs the module and all its dependencies in a directory named | |
# 'google-api'. In order to be able to import it, you have to add that to | |
# your import path, like this: | |
# | |
# import sys | |
# sys.path.append('google-api') | |
# |
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
''' | |
Everrista: create Evernote notes with Readability and Pythonista. | |
''' | |
__author__ = 'Serge Boyko aka mcsquaredjr' | |
__version__ = '0.2.1' | |
__email__ = "serge dot boyko at gmail dot com" | |
# Everrista is a script written for Pythonista to create | |
# Evernote notes from a URL or a text copied in the clipboard with as |
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
# Detect cardinal and diagonal gestures in Pythonista scene | |
# 8/3/13 created | |
# Copyright (c) by McSquaredJr. | |
from scene import * | |
from random import random | |
from colorsys import hsv_to_rgb | |
import math |
NewerOlder