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

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
AnsonT / gist:1115264
Created Jul 30, 2011
CoffeeScript debugging with node-inspector
View gist:1115264
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 &
You can’t perform that action at this time.