Skip to content

Instantly share code, notes, and snippets.

BigsnarfDude bigsnarfdude

Block or report user

Report or block bigsnarfdude

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
bigsnarfdude / gist:a0702a88b122be81cb1f4edb55229a7b
Last active Oct 18, 2019
[self-driving-car] links and resources
View gist:a0702a88b122be81cb1f4edb55229a7b
General Nanodegree Information
Nanodegrees Programs:
Nanodegree Plus (job guarantee):
UConnect (weekly in-person study sessions):
Courses on Udacity
Machine Learning Engineer Nanodegree by Google (Currently Available):
Artificial Intelligence for Robots (Free Course)
Intro to Statistics (Free Course)
Deep Learning (Free Course)
bigsnarfdude / gist:d811e31ee17495f82f10db12651ae82d
Last active Oct 16, 2019
[boundingBox] opencv example python - Contours – bounding box, minimum area rectangle, and minimum enclosing circle
View gist:d811e31ee17495f82f10db12651ae82d
import cv2
import numpy as np
# read and scale down image
# wget #black and white
# wget
img = cv2.pyrDown(cv2.imread('2011-volvo-s60_100323431_h.jpg', cv2.IMREAD_UNCHANGED))
# threshold image
ret, threshed_img = cv2.threshold(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY),
View gist:b6ae4dbd1b9b60d40cba
Example infrastructure outage incident report
Friday, May 13, 2077
By the Example Security Team
Earlier this week we experienced an outage in our API infrastructure. Today we’re providing an incident report that details the nature of the outage and our response.
The following is the incident report for the Example Security outage that occurred on April 30, 2077. We understand this service issue has impacted our valued developers and users, and we apologize to everyone who was affected.
bigsnarfdude /
Last active Oct 10, 2019
pandas concat multiple files
import pandas as pd
from glob import glob
raw_files = sorted(glob('files*.csv'))
pd.concat((pd.read_csv(singleFile).assign(filename=singleFile) for singleFile in raw_files), ignore_index=True)
bigsnarfdude / gist:61516f62f2da8ccd20ab491c7506d461
Last active Sep 15, 2019
[deep_learning_study] book table of contents
View gist:61516f62f2da8ccd20ab491c7506d461
Table of Contents
bigsnarfdude /
Created Dec 9, 2017
denoising autoencoder pytorch cuda
import os
import torch
from torch import nn
from torch.autograd import Variable
from import DataLoader
from torchvision import transforms
from torchvision.datasets import MNIST
from torchvision.utils import save_image
from slimit.parser import Parser
from slimit.visitors import nodevisitor
from slimit import ast
import re
def check_code_sanity(sequence):
parser = Parser()
tree = parser.parse(sequence)
for node in nodevisitor.visit(tree):
View whammy.js
var vid = new Whammy.Video();
vid.add(canvas or data url)
window.Whammy = (function(){
// in this case, frames has a very specific meaning, which will be
// detailed once i finish writing the code
bigsnarfdude /
Created Aug 7, 2019
opencv convert to jpeg python of "webm" files
import cv2
cap = cv2.VideoCapture('test.webm')
ret, frame =
if ret == False:
You can’t perform that action at this time.