Skip to content

Instantly share code, notes, and snippets.

View PKHG's full-sized avatar

PKHG PKHG

  • Enschede, The Netherlands
View GitHub Profile
@PKHG
PKHG / RPNCalculator.py
Created December 9, 2012 14:53
RPN Calculat.py for Pythonista
#version 1.2 8 dec. 2012 PKHG
#---------
#inverse sin etc. deg <-> rad
#4 12 2012 prgramming preparations
#UNDO partly done
from scene import *
from random import random
from string import ascii_lowercase
from math import *
from random import random
@PKHG
PKHG / mydirectory.py
Created November 8, 2012 16:31
a way to explore your Ipad internal storage
from scene import *
#from random import random
from time import ctime
from os import listdir, path, stat
from os.path import isdir, isfile, sep, abspath
interesting_dirs = {0:'.', 1:'/',2:'/Applications',3: '/Applications/Maps.app'}
#t= '/Applications/Maps.app/Japanese.lproj/Localizable.strings'
def dir_contents(path):
"""get all dirs and files from path"""