Skip to content

Instantly share code, notes, and snippets.

Rainer Dreyer rdrey

Block or report user

Report or block rdrey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ShawnLMP /
Last active Jul 31, 2018
functions for updating/accessing word vecs on DynamoDB (*updated to use spacy to find token. See for how to install spacy)
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
sartak / gist:3921255
Last active Mar 17, 2019
Anki 2 annotated schema
View gist:3921255
-- see for a more maintained version of this
-- cards are what you review. easy!
id integer primary key,
-- the epoch milliseconds of when the card was created
nid integer not null,
did integer not null,
-- deck id (available in col table)
domenic /
Created Mar 29, 2012
Cross-platform git hooks for Node.js

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 your devDependencies in package.json, so that the pre-commit hook can do its magic.
  • Add test and lint scripts to your package.json, e.g.
    "scripts": {
        "test": "mocha",
        "lint": "jshint ./lib --show-non-errors"
AnsonT / gist:1115264
Created Jul 30, 2011
CoffeeScript debugging with node-inspector
View gist:1115264
node-inspector &
coffee --nodejs --debug &
google-chrome &
google-chrome &
You can’t perform that action at this time.