Skip to content

Instantly share code, notes, and snippets.

💭
💧 ☕️ 💻 🚀 🚀 💤

Mike Rossetti s2t2

💭
💧 ☕️ 💻 🚀 🚀 💤
Block or report user

Report or block s2t2

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
@s2t2
s2t2 / MNISTwithKeras.py
Created Dec 17, 2018 — forked from prateekchandrayan/MNISTwithKeras.py
MNIST prediction using Keras and building CNN from scratch in Keras
View MNISTwithKeras.py
#Step 1
import cv2 # working with, mainly resizing, images
import numpy as np # dealing with arrays
import os # dealing with directories
from random import shuffle # mixing up or currently ordered data that might lead our network astray in training.
from tqdm import tqdm # a nice pretty percentage bar for tasks. Thanks to viewer Daniel BA1/4hler for this suggestion
import tensorflow as tf #Import Tensorflow
import glob #This will extract all files from the folder
import keras
from keras.preprocessing.image import ImageDataGenerator
@s2t2
s2t2 / gist:6a3f017c239950e510907e6eacad2bd1
Created Sep 2, 2018 — forked from eikes/gist:5a64b661022c756bd6522ed94770e2a6
List of Ruby on Rails Timezone names and their alias
View gist:6a3f017c239950e510907e6eacad2bd1
["Africa/Algiers", "West Central Africa"],
["Africa/Cairo", "Cairo"],
["Africa/Casablanca", "Casablanca"],
["Africa/Harare", "Harare"],
["Africa/Johannesburg", "Pretoria"],
["Africa/Monrovia", "Monrovia"],
["Africa/Nairobi", "Nairobi"],
["America/Argentina/Buenos_Aires", "Buenos Aires"],
["America/Bogota", "Bogota"],
["America/Caracas", "Caracas"],
@s2t2
s2t2 / investigation.py
Created Jun 19, 2018
using Python to parse the ESPN website for MLB standings, which is definitely not as straightforward as it could be. there are a lot of nested tables to deal with.
View investigation.py
from bs4 import BeautifulSoup
import requests
import pdb
import json
request_url = "https://www.espn.com/mlb/standings"
response = requests.get(request_url)
soup = BeautifulSoup(response.content, 'html.parser')
@s2t2
s2t2 / products_api_client.py
Last active Jun 3, 2018
products api client
View products_api_client.py
import json
import requests
base_url = "https://nyu-info-2335-products-api-csv.herokuapp.com"
def list_products():
response = requests.get(f"{base_url}/products")
return parsed_response(response)
def show_product(product_id):
@s2t2
s2t2 / README.md
Created Mar 9, 2018
reading piv/cac cards
View README.md
brew install opensc
opensc-tool -n
@s2t2
s2t2 / nginx.conf
Created Mar 9, 2018
local nginx config
View nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@s2t2
s2t2 / Gemfile
Created Mar 7, 2018 — forked from ctalkington/Gemfile
Nginx, Sinatra, and Puma.
View Gemfile
source :rubygems
gem "puma"
gem "sinatra"
@s2t2
s2t2 / index.html
Created Feb 8, 2018
search usa gov jquery
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<button type="button" name="button" id="search-button">Search</button>
<ul id="my-list"></ul>
You can’t perform that action at this time.