Skip to content

Instantly share code, notes, and snippets.

Avatar

Devan Stormont stormont

View GitHub Profile
@stormont
stormont / svhn_decompress.py
Created Nov 17, 2017
Basic function to decompress SVHN dataset .mat files into raw images
View svhn_decompress.py
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 Dec 29, 2016
Stub file for Elm projects
View Main.elm
module Main exposing (main)
import Html exposing (..)
-- MODEL
type alias Model =
{
@stormont
stormont / reactor_compiled_index.html
Last active Dec 9, 2016
Index page for use with elm-make
View reactor_compiled_index.html
<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 Dec 9, 2016
Index page for use with elm-reactor
View reactor_debug_index.html
<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>
View gist:cb9af683cb5192ce7690b28c3feeddb2
-- 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