Skip to content

Instantly share code, notes, and snippets.

View ZacharyJacobCollins's full-sized avatar
☁️
head in the clouds

Zachary Collins ZacharyJacobCollins

☁️
head in the clouds
View GitHub Profile
@ZacharyJacobCollins
ZacharyJacobCollins / goth_auth.go
Created March 17, 2016 21:30 — forked from paked/goth_auth.go
Basic OAuth with goth in golang.
package main
import (
"flag"
"fmt"
"net/http"
"github.com/gorilla/mux"
"github.com/markbates/goth"
"github.com/markbates/goth/gothic"
package chat
//Native Golang packages
import (
"html/template"
"net/http"
)
//Global chat html template file. Ensure it parses by calling template.Must. Calls Panic if template does not render correctly. Redirect to err page.
var homeTemplate = template.Must(template.ParseFiles("./chat/templates/home.html"))
@ZacharyJacobCollins
ZacharyJacobCollins / basic-list-functions.sml
Created January 31, 2016 19:31 — forked from edalorzo/basic-list-functions.sml
Learning SML - Basic List Functions
(* Returns the head of a list. *)
fun head(xs) =
case xs of
[] => raise List.Empty
| (x::_) => x
(* Returns the tail of a list. *)
fun tail(xs) =
case xs of
[] => raise List.Empty
@ZacharyJacobCollins
ZacharyJacobCollins / index.html
Created January 19, 2016 03:24
Get text as text file from url - js - anchor method
<!DOCTYPE html>
<html>
<head>
<title>text getter</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
</head>
<body>
<h3>click the button to get text file in both json and text format</h3>
<p>url : http://it.emich.edu/bannerfiles/sctnenrl_wi.txt</p>
Just the commments. ValidateOne should also be called ifone or something.
.ORIG x3000;
;REGISTER ASSIGNMENT INFORMATION
; R0 is I/O
; R1 manages the address of the storage memory for the first loop
; R2 is a temporary variable