This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Tkinter | |
| import tkSimpleDialog | |
| tk = Tkinter.Tk() | |
| var = tkSimpleDialog.askstring("Name prompt", "enter your name") | |
| print var | |
| # Reference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class NoteBookDB(object): | |
| def __init__(self): | |
| pass | |
| def create_db(self): | |
| "Create Database here" | |
| pass | |
| def is_db_exists(self): | |
| return False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def urlinformation(): | |
| titlelist = [] | |
| genrelist = [] | |
| valuelist = [] | |
| lists = ( | |
| titlelist, | |
| genrelist, | |
| valuelist, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'tim' | |
| import Tkinter | |
| root = Tkinter.Tk() | |
| screen = Tkinter.Label(root) | |
| screen.pack() | |
| buttons = Tkinter.Frame(root) | |
| buttons.pack() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'tim' | |
| import Tkinter | |
| root = Tkinter.Tk() | |
| screen = Tkinter.Label(root) | |
| screen.pack() | |
| buttons = Tkinter.Frame(root) | |
| buttons.pack() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##Reference | |
| ## http://effbot.org/tkinterbook/label.htm | |
| import Tkinter | |
| root = Tkinter.Tk() | |
| variable = Tkinter.StringVar() | |
| variable.set('0') | |
| def add(): | |
| variable.set(int(variable.get()) + 1) |