Skip to content

Instantly share code, notes, and snippets.

@thrinu
thrinu / README.md
Created August 3, 2018 09:58 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.


@thrinu
thrinu / lambda-dynamodb-scan
Created June 19, 2018 10:48 — forked from markusklems/lambda-dynamodb-scan
Short aws lambda sample program that scans a dynamodb table
// create an IAM Lambda role with access to dynamodb
// Launch Lambda in the same region as your dynamodb region
// (here: us-east-1)
// dynamodb table with hash key = user and range key = datetime
console.log('Loading event');
var AWS = require('aws-sdk');
var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'});
exports.handler = function(event, context) {
@thrinu
thrinu / pairwise.py
Created February 19, 2018 08:39 — forked from cjdd3b/pairwise.py
Using Gensim and heapq for scalable pairwise document comparisons.
'''
pairwise.py
This script uses the Python Gensim library and heapq from the standard library to make
massively fast and scalable pairwise comparisons between an aribtrarily large number of
documents using TF-IDF and cosine distance.
The script first generates a similarity matrix between all documents in a set, then uses
heapq to retrieve the top K most similar matches to each document in that set. It has been
tested on sets as large as 400,000 documents on a Macbook Air.
@thrinu
thrinu / gist:bcaceaeb936a11767587adf96866c3da
Created August 2, 2017 18:27 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@thrinu
thrinu / README
Created July 26, 2017 15:06 — forked from dataverger/README
Testing Mods to PythonForEngineers Book Source
I uploaded files modified from Shantnu Tiwari's Python For Engineers (PyEng) respository.
Specifically, the Image_Video subdirectory has sample programs, which I modified to use matplotlib.pyplot's imshow() insead of OpenCV's imshow().
This is not ideal, but got the programs further along in the absense of a working OpenCV on Ubuntu.
The next step was to avoid the GUI altogether and use OpenCV's imwrite() to save images to a file. The pyplot examples are left in, but commented out for reference.
@thrinu
thrinu / convolutional_nn_tutorial_3.R
Created July 25, 2017 13:14 — forked from mick001/convolutional_nn_tutorial_3.R
Image recognition tutorial in R using deep convolutional neural networks (MXNet package). Part 3. Full article at https://firsttimeprogrammer.blogspot.com/2016/08/image-recognition-tutorial-in-r-using.html
# Clean workspace
rm(list=ls())
# Load MXNet
require(mxnet)
# Loading data and set up
#-------------------------------------------------------------------------------
# Load train and test datasets