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 / Dicttest.py
Created November 24, 2015 14:32
Dicttest.py
# coding: utf-8
# coding: utf-8
from collections import OrderedDict
import sqlite3
from random import randint
from faker import Faker
fake = Faker()
@Phuket2
Phuket2 / prm2.py
Created November 25, 2015 10:54
prm2.py
# coding: utf-8
import dbdef
from dbdef import get_SQL
# only testing modes
from faker import Faker
fake = Faker()
@Phuket2
Phuket2 / prm2.py
Created November 27, 2015 10:39
prm2.py
# coding: utf-8
'''
the rules are not so clear to me about making your own application id.
will look into it more...
'''
import sqlite3
@Phuket2
Phuket2 / pragmas.py
Created November 28, 2015 16:15
pragmas.py
# coding: utf-8
# *** DISCLAIMER PLEASE READ ***
# please understand, i am a newbie. being a newbie,
# my code may be crap or worse buggy
# i still like to share. it could be useful code.
# or parts of could be useful
# but i like the feedback
@Phuket2
Phuket2 / pragmas.py
Created November 28, 2015 18:42
pragmas.py
# coding: utf-8
# *** DISCLAIMER PLEASE READ ***
# please understand, i am a newbie. being a newbie,
# my code may be crap or worse buggy
# i still like to share. it could be useful code.
# or parts of could be useful
# but i like the feedback
@Phuket2
Phuket2 / pragmas.py
Created November 28, 2015 18:43
pragmas.py
# coding: utf-8
# *** DISCLAIMER PLEASE READ ***
# please understand, i am a newbie. being a newbie,
# my code may be crap or worse buggy
# i still like to share. it could be useful code.
# or parts of could be useful
# but i like the feedback
@Phuket2
Phuket2 / pragmas.py
Created November 28, 2015 18:43
pragmas.py
# coding: utf-8
# *** DISCLAIMER PLEASE READ ***
# please understand, i am a newbie. being a newbie,
# my code may be crap or worse buggy
# i still like to share. it could be useful code.
# or parts of could be useful
# but i like the feedback
@Phuket2
Phuket2 / CreateTestFile.py
Last active December 9, 2015 08:03
CreateTestFile.py
# coding: utf-8
# *** DISCLAIMER PLEASE READ ***
# please understand, i am a newbie. being a newbie,
# my code may be crap or worse buggy
# i still like to share. it could be useful code.
# or parts of could be useful
# but i like the feedback
@Phuket2
Phuket2 / SlidePanelClass.py
Created December 19, 2015 16:21
SlidePanelClass.py
# coding: utf-8
'''
code copied from dialogs.py Pythonista 1.6 beta, @omz (Ole Zorn)
specially the parts of the code that present a datepicker
in a dialog with animation and a shield of the dialogs contents
a few mods made
'''
_country_list = ['Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Brazil', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Democratic Republic of the Congo (Kinshasa)', 'Congo, Republic of (Brazzaville)', 'Cook Islands', 'Costa Rica', 'Ivory Coast', 'Croatia', 'Cuba', '
@Phuket2
Phuket2 / tmpPfL16j.py
Created December 20, 2015 07:47
tmpPfL16j.py
f_str = [
{
"selected" : False,
"frame" : "{{0, 0}, {320, 480}}",
"class" : "View",
"nodes" : [
{
"selected" : False,
"frame" : "{{0, 233}, {320, 32}}",
"class" : "Label",