Skip to content

Instantly share code, notes, and snippets.

View Phuket2's full-sized avatar

Ian Joicey Phuket2

  • Pattaya, Thailand
View GitHub Profile
@Phuket2
Phuket2 / code_helper.py
Created July 3, 2015 16:48
code_helper.py
# @Phuket2
# beware i am a beginner programmer, if you are also a beginner programmer, dont try to learn from me. i think i have some ok ideas, put my code is not even close to being smart or refined.
# CodeHelper applet :)
# what:
# is a popover view that presents buttons you have described in data below that basically copies text to the clipboard. a gloried copy routine. but before you decide, look at the examples below. a lot can be done.
# settings:
# 1. _btns_per_line, the number of btns you want displayed on a single row/line
# IMPORTANT SETUP INSTRUCTIONS:
#
# 1. Go to http://www.dropbox.com/developers/apps (log in if necessary)
# 2. Select "Create App"
# 3. Select the following settings:
# * "Dropbox API app"
# * "Files and datastores"
# * "(No) My app needs access to files already on Dropbox"
# * "All file types"
# * (Choose any app name)
'''FTP server for Pythonista (iOS)
You can use this to exchange files with a Mac/PC or a file management app on the same device (e.g. Transmit).
If you use a Mac, you can connect from the Finder, using the "Go -> Connect to Server..." menu item.
'''
import os
from socket import gethostname
@Phuket2
Phuket2 / omzforum.py
Created August 6, 2015 11:04
omzforum.py
# coding: utf-8
# WARNING
# If you click write to file, a directory called
# _temp_dir_name will be created in your root dir
# i think the normal temp/tmp dirs are invisible
# in pythonista. i refer to as a temp dir as in
# my case, i only download code from the forum
# to test it. i want it all to go to one dir.
# easier to clean up
@Phuket2
Phuket2 / vv.py
Created August 17, 2015 11:45
VirtualView
# coding: utf-8
# 1.6
# many things just copied from omz starter code
# all the bad stuff, thats me :)
# still learning
###### VirtualView #######
# for displaying large amounts of data
@Phuket2
Phuket2 / Gist.py
Last active August 29, 2015 14:27
now
# coding: utf-8
import gistcheck as GIST
class Test (object):
pass
if __name__ == '__main__':
GIST.commit()
@Phuket2
Phuket2 / vpv.py
Last active August 29, 2015 14:27
VirtualView
# coding: utf-8
# 1.6
# many things just copied from omz starter code
# all the bad stuff, thats me :)
# still learning
###### VirtualView #######
# for displaying large amounts of data
@Phuket2
Phuket2 / vpv.py
Created August 18, 2015 12:42
August 18, 19:42
# coding: utf-8
# 1.6
# many things just copied from omz starter code
# all the bad stuff, thats me :)
# still learning
###### VirtualView #######
# for displaying large amounts of data
@Phuket2
Phuket2 / vpv.py
Created August 18, 2015 12:51
updated
# coding: utf-8
# 1.6
# many things just copied from omz starter code
# all the bad stuff, thats me :)
# still learning
###### VirtualView #######
# for displaying large amounts of data
# coding: utf-8
# 1.6
# many things just copied from omz starter code
# all the bad stuff, thats me :)
# still learning
###### VirtualView #######
# for displaying large amounts of data