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
bigsnarfdude / gist:a0702a88b122be81cb1f4edb55229a7b
Last active Oct 18, 2019
[self-driving-car] links and resources
View gist:a0702a88b122be81cb1f4edb55229a7b
General Nanodegree Information
Nanodegrees Programs: https://www.udacity.com/nanodegree
Nanodegree Plus (job guarantee): https://www.udacity.com/nanodegree/plus
UConnect (weekly in-person study sessions): https://www.udacity.com/uconnect
Courses on Udacity
Machine Learning Engineer Nanodegree by Google (Currently Available): https://www.udacity.com/course/machine-learning-engineer-nanodegree-by-google--nd009
Artificial Intelligence for Robots (Free Course) https://www.udacity.com/course/artificial-intelligence-for-robotics--cs373
Intro to Statistics (Free Course) https://www.udacity.com/course/intro-to-statistics--st101
Deep Learning (Free Course) https://www.udacity.com/course/deep-learning--ud730
@bigsnarfdude
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 https://bigsnarf.files.wordpress.com/2017/05/hammer.png #black and white
# wget https://i1.wp.com/images.hgmsites.net/hug/2011-volvo-s60_100323431_h.jpg
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
bigsnarfdude / pdConcat.py
Last active Oct 10, 2019
pandas concat multiple files
View pdConcat.py
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
bigsnarfdude / gist:61516f62f2da8ccd20ab491c7506d461
Last active Sep 15, 2019
[deep_learning_study] book table of contents
View gist:61516f62f2da8ccd20ab491c7506d461
Table of Contents
http://neuralnetworksanddeeplearning.com/about.html
http://neuralnetworksanddeeplearning.com/index.html
http://neuralnetworksanddeeplearning.com/exercises_and_problems.html
http://neuralnetworksanddeeplearning.com/chap1.html
http://neuralnetworksanddeeplearning.com/chap2.html
http://neuralnetworksanddeeplearning.com/chap3.html
http://neuralnetworksanddeeplearning.com/chap4.html
http://neuralnetworksanddeeplearning.com/chap5.html
@bigsnarfdude
bigsnarfdude / dae_pytorch_cuda.py
Created Dec 9, 2017
denoising autoencoder pytorch cuda
View dae_pytorch_cuda.py
import os
import torch
from torch import nn
from torch.autograd import Variable
from torch.utils.data import DataLoader
from torchvision import transforms
from torchvision.datasets import MNIST
from torchvision.utils import save_image
View extractor.py
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)
vid.compile()
*/
window.Whammy = (function(){
// in this case, frames has a very specific meaning, which will be
// detailed once i finish writing the code
@bigsnarfdude
bigsnarfdude / tester.py
Created Aug 7, 2019
opencv convert to jpeg python of "webm" files
View tester.py
import cv2
cap = cv2.VideoCapture('test.webm')
i=0
while(cap.isOpened()):
ret, frame = cap.read()
if ret == False:
break
cv2.imwrite('tester'+str(i)+'.jpg',frame)
You can’t perform that action at this time.