GliaStudio provides 2 APIs:
合作廠商會於gliacloud 取得一段長度為 40的 hash token, 如 4852cb43656e01f9f7ebfdf548faab789378d58d
在使用api時, 於header 加入 token 資訊即可使用
| __author__ = 'tim' | |
| import Tkinter | |
| root = Tkinter.Tk() | |
| screen = Tkinter.Label(root) | |
| screen.pack() | |
| buttons = Tkinter.Frame(root) | |
| buttons.pack() |
| __author__ = 'tim' | |
| import Tkinter | |
| root = Tkinter.Tk() | |
| screen = Tkinter.Label(root) | |
| screen.pack() | |
| buttons = Tkinter.Frame(root) | |
| buttons.pack() |
| import shelve | |
| s = shelve.open('test_shelf') | |
| try: | |
| print s['key1'] | |
| value_for_key1 = s['key1'] | |
| value_for_key1['new_value'] = 'this was not here before' | |
| s['key1'] = value_for_key1 | |
| finally: |
| import shelve | |
| def addData(data): | |
| #figure how to add data | |
| pass | |
| def showData(data): | |
| # display your organized data | |
| pass | |
| init_data = shelve.open('sample.db') |
| def urlinformation(): | |
| titlelist = [] | |
| genrelist = [] | |
| valuelist = [] | |
| lists = ( | |
| titlelist, | |
| genrelist, | |
| valuelist, | |
| ) |
| class NoteBookDB(object): | |
| def __init__(self): | |
| pass | |
| def create_db(self): | |
| "Create Database here" | |
| pass | |
| def is_db_exists(self): | |
| return False |
| // Build Your Less with watch function | |
| // you need to do the following first | |
| // sudo pip install watchdog | |
| LESS_FILE=style/style.less | |
| TARGET=style/style.css | |
| INCLUDE=--include-path=dist-bootstrap/less | |
| less_command := lessc $(LESS_FILE) $(INCLUDE) $(TARGET) |
| import Tkinter | |
| import tkSimpleDialog | |
| tk = Tkinter.Tk() | |
| var = tkSimpleDialog.askstring("Name prompt", "enter your name") | |
| print var | |
| # Reference |
| "babel-core": "^6.9.1", | |
| "babel-loader": "^6.2.4", | |
| "babel-preset-es2015": "^6.9.0", | |
| "babel-preset-react": "^6.5.0", | |
| "node-sass": "^3.7.0", | |
| "react": "^15.1.0", | |
| "sass-loader": "^3.2.0", | |
| "webpack": "^1.13.1", | |
| "webpack-dev-server": "^1.14.1", | |
| "css-loader": "^0.23.1", |