Skip to content

Instantly share code, notes, and snippets.

View mickelsonm's full-sized avatar

Matt Mickelson mickelsonm

  • USA
View GitHub Profile
@mickelsonm
mickelsonm / fieIOAndSort.cpp
Created February 24, 2014 01:45
simple/trivial exercise for doing a file IO task and sorting the results.
/***********************************
* A demonstration of File IO and loops
* This program will read from a file,
* parse the line data into tokens.
* sort the data, and write to a file.
*
* Author: Matt Mickelson
* Original Files/Concepts: Dave Dalsveen
*/
@mickelsonm
mickelsonm / guid.go
Created March 6, 2014 20:27
Some Guid thing I was playing around with.
package guid
import(
"crypto/rand"
"encoding/hex"
"regexp"
"strconv"
)
type Guid struct{
GetLocations:function(callback){
var that = this;
$.ajax({
url: '/customers/locations/json/' + that.ID,
type: 'GET',
dataType: 'json',
success:function(data,status,xhr){
if(callback){
callback(data, null);
}
@mickelsonm
mickelsonm / sublime-text-3.rb
Created May 12, 2014 14:08
sublimetext 3 tap
class SublimeText3 < Cask
url 'http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203059.dmg'
homepage 'http://www.sublimetext.com/3'
version '1.0.0'
sha256 '057c12afed359ea93f996b2e73973fa8ea2bfb14a3e61a5e13b467c5c38d4ca5'
binary 'Sublime Text.app/Contents/SharedSupport/bin/subl'
link 'Sublime Text.app'
caveats do
files_in_usr_local
end
string christmasTree(int height){
string output = "";
if(height >= 0 && height <= 100){
int numStars = 1;
for(int lines=height; lines > 0; lines--){
for(int spaces=(lines-1); spaces > 0; spaces--){
output += " ";
}
for(int star=0; star < numStars; star++){
output += "*";
@mickelsonm
mickelsonm / githelp.js
Created June 4, 2014 15:37
basic help for git
//get a codebase to start with
'git clone http://github.com/repository' : Clone whatever the default repository is.
'git clone http://github.com/repository -b <specific branch name>': Clones a specific branch of a repository.
//get updates, get informed about conflicts, etc.
'git pull'
//get status of what changed within your checked out code
'git status'
@mickelsonm
mickelsonm / setup.sh
Last active August 29, 2015 14:02
dev mac setup
#!/bin/bash
#install homebrew right from the start
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
#install brew cask
brew install caskroom/cask/brew-cask
#update everything
brew update
@mickelsonm
mickelsonm / angular-vehicle-lookup.html
Last active August 29, 2015 14:04
exploring angular.js
<!DOCTYPE html>
<html ng-app="vehicleLookupApp">
<head>
<meta charset="utf-8">
<title>Angular.js Vehicle Lookup</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script>
<script type="text/javascript">
var vehicleLookupApp = angular.module('vehicleLookupApp', []);
@mickelsonm
mickelsonm / main.go
Last active February 3, 2024 18:48 — forked from manishtpatel/main.go
Golang AES Encryption/Decryption example. See running example: http://play.golang.org/p/5G-IUlYqQV
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"errors"
"io"
"log"

Category Brainstorm

Category

  • ID - int(11)
  • ParentID - int(11)
  • Name - varchar(255)
  • Sort - int(11)