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 / Gulpfile.js
Created October 19, 2016 19:42 — forked from wrouesnel/Gulpfile.js
webpack, react, golang self-contained gulpfile
var path = require('path');
var gulp = require('gulp');
var run = require('gulp-run');
var gutil = require('gulp-util');
var minimist = require('minimist');
var options = minimist(process.argv.slice(2), {
string: 'env',
@ZacharyJacobCollins
ZacharyJacobCollins / BinaryToDecimal.java
Created October 17, 2016 20:25
School project for binary to decimal conversions
import java.util.Scanner;
import java.lang.reflect.*;
public class Converter {
public String Type, Number, Excess, TwosComp, OnesComp, SignedMag;
public boolean isNegative = false;
//TODO add input.close not sure why throwing nosuch element exception
public static void main(String[] args) throws Exception {
boolean done = false;
@ZacharyJacobCollins
ZacharyJacobCollins / Linked List implementation
Last active October 20, 2016 19:42
Linked List Implementation in Java
public class LinkedList {
private Node head;
public int listCount;
public LinkedList() {
head = new Node("");
listCount = 1;
}
import java.util.ArrayList;
import java.util.Scanner;
//Zachary Collins
//100% Vegetarian Code
public class One {
//The main class
public static void main(String[] args) {
//The footer
Vue.component('footer-component', {
template: `
<footer id="footer" class="main">
<ul>
<template v-for="footerSection in footerSections">
<li><a href="{{ footerSection.link }}">{{ footerSection.text }}</a></li>
</template>
</ul>
<p> MIT <a href="https://github.com/ZacharyJacobCollins">@Zachary Collins {{footerSections}}</a></p>
@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
@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 / 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
# 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:
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