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
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
@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>
@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
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 / 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"
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
@ZacharyJacobCollins
ZacharyJacobCollins / Class file
Created June 30, 2016 15:46 — forked from samatsav/Class file
Convert PHP arrays to XLS
<?php
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@ZacharyJacobCollins
ZacharyJacobCollins / Excel.php
Created June 30, 2016 15:48 — forked from barryvdh/Excel.php
Simple php-excel class to load an Excel file into an array (using Laravel json/array interface, but you don't have to use that). Don't forget to require https://packagist.org/packages/phpoffice/phpexcel or https://packagist.org/packages/codeplex/phpexcel
<?php
use Illuminate\Support\Contracts\ArrayableInterface;
use Illuminate\Support\Contracts\JsonableInterface;
class Excel implements ArrayableInterface, JsonableInterface{
protected $objPHPExcel;
public function __construct($file){
if($file instanceof \SplFileInfo){
$filename = $file->getRealPath();
@ZacharyJacobCollins
ZacharyJacobCollins / laravel-ums.markdown
Created July 11, 2016 00:20 — forked from anchetaWern/laravel-ums.markdown
Building a User Management System in Laravel

There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.

I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:

  • Register Roles
  • Register Users
  • Update Users