Skip to content

Instantly share code, notes, and snippets.

Avatar

PKHG PKHG

  • Enschede, The Netherlands
View GitHub Profile
@PKHG
PKHG / RPNCalculator.py
Created Dec 9, 2012
RPN Calculat.py for Pythonista
View RPNCalculator.py
#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 Nov 8, 2012
a way to explore your Ipad internal storage
View mydirectory.py
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"""