This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"github.com/gorilla/mux" | |
"github.com/markbates/goth" | |
"github.com/markbates/goth/gothic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder