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 boto3 | |
| import numpy | |
| import pickle | |
| import spacy | |
| table_name = 'wordvec' # table name on DynamoDB | |
| # batch size specified by DynamoDB. See DynamoDB's doc for more details | |
| write_batch_size = 25 | |
| read_batch_size = 100 |
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
| #!/usr/bin/env python2 | |
| # | |
| # dockbar.py | |
| # | |
| # Example program places a coloured bar across the top of the | |
| # current monitor | |
| # | |
| # demonstrates | |
| # | |
| # (a) creating the bar as an undecorated "dock" window |
Here's how this works:
- Include a
git_hooks/directory in your project, with these two files (plus other hooks if you want, written in a similar style). - Add
"npm"to yourdevDependenciesinpackage.json, so that thepre-commithook can do its magic. - Add
testandlintscripts to yourpackage.json, e.g.
"scripts": {
"test": "mocha",
"lint": "jshint ./lib --show-non-errors"
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
| node-inspector & | |
| coffee --nodejs --debug app.coffee & | |
| google-chrome http://127.0.0.1:8080/debug?port=5858 & | |
| google-chrome http://127.0.0.1:3000 & |