Skip to content

Instantly share code, notes, and snippets.

💧 ☕️ 💻 🚀 🚀 💤

Mike Rossetti s2t2

💧 ☕️ 💻 🚀 🚀 💤
View GitHub Profile
s2t2 /
Created Sep 13, 2020 — forked from ameyms/
D3 Gauge - Part Deux

Yet another simple gauge chart using d3 Inspired by Jake Trent's Codepen snippet

To move the pointer needle, type in following code in you javascript console

View albums.csv
artist_id artist_name album_id album_title
1 AC/DC 1 For Those About To Rock We Salute You
2 Accept 2 Balls to the Wall
2 Accept 3 Restless and Wild
1 AC/DC 4 Let There Be Rock
3 Aerosmith 5 Big Ones
4 Alanis Morissette 6 Jagged Little Pill
5 Alice In Chains 7 Facelift
6 Antônio Carlos Jobim 8 Warner 25 Anos
7 Apocalyptica 9 Plays Metallica By Four Cellos
View gist:3a5c733e11dfc4d646ef717a65f37f44
"name":"New Haven Union Station",
s2t2 / android-sdk-preview.txt
Last active Jul 31, 2019
Flutter Android LICENSES
View android-sdk-preview.txt
2/5: License android-sdk-preview-license:
To get started with the Android SDK Preview, you must agree to the following terms and conditions. As described below, please note that this is a preview version of the Android SDK, subject to change, that you use at your own risk. The Android SDK Preview is not a stable release, and may contain errors and defects that can result in serious damage to your computer systems, devices and data.
This is the Android SDK Preview License Agreement (the "License Agreement").
1. Introduction
1.1 The Android SDK Preview (referred to in the License Agreement as the “Preview” and specifically including the Android system files, packaged APIs, and Preview library files, if and when they are made available) is licensed to you subject to the terms of the License Agreement. The License Agreement forms a legally binding contract between you and Google in relation to your use of the Preview.
s2t2 /
Created Dec 17, 2018 — forked from prateekchandrayan/
MNIST prediction using Keras and building CNN from scratch in Keras
#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 / 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 /
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.
from bs4 import BeautifulSoup
import requests
import pdb
import json
request_url = ""
response = requests.get(request_url)
soup = BeautifulSoup(response.content, 'html.parser')
s2t2 /
Last active Jun 3, 2018
products api client
import json
import requests
base_url = ""
def list_products():
response = requests.get(f"{base_url}/products")
return parsed_response(response)
def show_product(product_id):
You can’t perform that action at this time.