Skip to content

Instantly share code, notes, and snippets.

View stormont's full-sized avatar

Devan Stormont stormont

View GitHub Profile
@stormont
stormont / svhn_decompress.py
Created November 17, 2017 03:29
Basic function to decompress SVHN dataset .mat files into raw images
import cv2
import numpy as np
import os
import scipy.io as sio
def write_files(mat_input_file, output_dir):
if not os.path.exists(mat_input_file):
raise Exception('Path does not exist: ' + mat_input_file)
@stormont
stormont / Main.elm
Created December 29, 2016 17:56
Stub file for Elm projects
module Main exposing (main)
import Html exposing (..)
-- MODEL
type alias Model =
{
@stormont
stormont / reactor_compiled_index.html
Last active December 9, 2016 18:51
Index page for use with elm-make
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- Put the path to your styles here -->
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>
@stormont
stormont / reactor_debug_index.html
Last active December 9, 2016 18:50
Index page for use with elm-reactor
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- Put the path to your styles here -->
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>
-- Read more about this program in the official Elm guide:
-- https://guide.elm-lang.org/architecture/effects/http.html
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Http
import Json.Decode as Decode