Skip to content

Instantly share code, notes, and snippets.

View angadn's full-sized avatar

Angad Nadkarni angadn

View GitHub Profile
@angadn
angadn / machinery.go
Last active April 9, 2019 08:03
Machinery using AWS SQS + DynamoDB
package main
import (
"log"
"net/http"
"sync"
"time"
"github.com/RichardKnop/machinery/v1/tasks"
@angadn
angadn / gensim-test.py
Last active November 10, 2017 15:15
Gensim Test
"""
Tests gensim with the Google News Word2Vec model
"""
import gensim
import numpy
from scipy import spatial
M = gensim.models.KeyedVectors.load_word2vec_format(
"./GoogleNews-vectors-negative300.bin", binary=True
@angadn
angadn / require.js
Created March 4, 2016 18:42
require() for browsers
/******************************************************
* Angad Nadkarni's note: *
* Resist the temptation to 'optimize' my hack *
******************************************************/
//
// This file is part of Smoothie.
//
// Copyright (C) 2013-2015 Flowy Apps GmbH <[email protected]>