This file contains hidden or 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
| { | |
| "query": "MISC01", | |
| "count": 1, | |
| "objects": [ | |
| { | |
| "ITEM_ID": "MISC01", | |
| "UPC": "867530900000", | |
| "ITEM_DESC": "MISC ITEM $0-25", | |
| "PROD_CLASS_ID": "MISC", | |
| "AVAILABLE": "999", |
This file contains hidden or 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
| func apiGetItem(q string) *queryItem { | |
| requestURL := "http://epoch.app/inventory/apiGetItemInfo.php?q=" + q | |
| getQuery, _ := http.Get(requestURL) | |
| defer getQuery.Body.Close() | |
| resultQuery, _ := ioutil.ReadAll(getQuery.Body) | |
| payload := &queryItem{} | |
| ok := json.Unmarshal(resultQuery, payload) | |
| return payload | |
| } |
This file contains hidden or 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 ( | |
| "encoding/json" | |
| "fmt" | |
| ) | |
| type itemResult struct { | |
| Query string `json:"query"` | |
| Count int `json:"count"` |
This file contains hidden or 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 ( | |
| "fmt" | |
| ) | |
| type ZipCoder interface { | |
| fullName() string | |
| } |
This file contains hidden or 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
| [ROOT] # source golang-crosscompile/crosscompile.bash | |
| -sh: `go-alias': not a valid identifier | |
| -sh: `go-crosscompile-build': not a valid identifier | |
| -sh: `go-crosscompile-build-all': not a valid identifier | |
| -sh: `go-all': not a valid identifier | |
| -sh: `go-build-all': not a valid identifier | |
| -sh: go-alias: command not found | |
| -sh: go-alias: command not found | |
| -sh: go-alias: command not found | |
| -sh: go-alias: command not found |
This file contains hidden or 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
| <script type="text/javascript"> | |
| (function(){ | |
| var _z = console; | |
| Object.defineProperty( window, "console", { | |
| get : function(){ | |
| if( _z._commandLineAPI ){ | |
| throw "Sorry, Can't exceute scripts!"; | |
| } | |
| return _z; | |
| }, |
This file contains hidden or 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
| { | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme", | |
| "draw_white_space": "all", | |
| "fade_fold_buttons": false, | |
| "find_selected_text": true, | |
| "font_face": "Source Code Pro for Powerline", | |
| "font_size": 19, | |
| "highlight_line": true, |
This file contains hidden or 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
| [ | |
| {"keys": ["super+`"], "command": "unexpand_tabs"}, | |
| {"keys": ["option+`"], "command": "expand_tabs"} | |
| ] |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| <HTML> | |
| <HEAD> | |
| <title>User Login</title> | |
| <!-- Twitter Bootstrap stylesheet --> | |
| <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> | |
| </HEAD> | |
| <BODY> |