- ID - int(11)
- ParentID - int(11)
- Name - varchar(255)
- Sort - int(11)
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
/*********************************** | |
* 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 | |
*/ |
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 guid | |
import( | |
"crypto/rand" | |
"encoding/hex" | |
"regexp" | |
"strconv" | |
) | |
type Guid struct{ |
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
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); | |
} |
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
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 |
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
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 += "*"; |
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
//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' |
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
#!/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 |
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 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', []); |
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 ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"errors" | |
"io" | |
"log" |
OlderNewer