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
function onDeviceConnected(data) { | |
alert("onDeviceConnected: " + data); | |
} | |
function onSuccessScanPaymentCard(data) { | |
alert("onSuccessScanPaymentCard: " + data); | |
} | |
function onBarcodeScanned(data) { | |
alert("onBarcodeScanned: " + data.rawCodesArr); |
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> | |
<head> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<style> | |
html {margin-top:40px;} | |
</style> | |
</head> |
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
SELECT | |
RTRIM(ITEM_ID) AS ITEM_ID | |
FROM INVENTOR | |
WHERE | |
( | |
ENTRY_DATE >= '2015-01-01' | |
OR | |
(AVAILABLE > 0 OR ON_ORDER_QTY > 0 OR COMMITTED_QTY > 0) | |
) | |
AND |
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
SELECT | |
dbo.SYSOENT.ORDER_STATUS, | |
dbo.SHIPTO.SHIPTO_ID, | |
dbo.SHIPTO.ORDER_NO, | |
RTRIM(dbo.SHIPTO.SHIPMETH_CODE) AS SHIPMETH_CODE, | |
RTRIM(dbo.SHIPTO.COMPANY_NAME) AS SHIPTO_COMPANY_NAME, | |
RTRIM(dbo.SHIPTO.LAST_NAME) AS SHIPTO_LAST_NAME, | |
RTRIM(dbo.SHIPTO.FIRST_NAME) AS SHIPTO_FIRST_NAME, | |
RTRIM(dbo.SHIPTO.ADDRESS_LINE1) AS SHIPTO_ADDRESS_LINE1, | |
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
// Use the package, HTTP. | |
var http = require('http'); | |
// In the package HTTP, execute createServer | |
http.createServer(function (req, res) { | |
// When createServer sees a request, shoot a header with a status 200 (this means OK) and tell it the next bit is text/plain | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
// This is the bits that go to the browser |
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
<?php | |
// This is a simple way to cache queries to your local filesystem while maintaining control over their freshness. | |
// Great for those nasty archival queries that data changes don't happen to. | |
// Free to all, forever - John Vilsack 2014 | |
$file = './cache/**FILENAME**.cache'; // Path and name of .cache file | |
$expire = 900; // # of seconds before cache is stale | |
// Function to create the cached file. |
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
command: "", | |
refreshFrequency: 138000, | |
render: function (output) { | |
return "<iframe width=\"1880\" height=\"1250\" src=\"//www.youtube.com/embed/lhdJODImBL8?version=3&autoplay=1&loop=1&controls=0&showinfo=0&playlist=lhdJODImBL8\" frameborder=\"0\" allowfullscreen></iframe>"; | |
}, | |
style: " \n\ | |
top: -100px \n\ |
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 ( | |
"database/sql" | |
"log" | |
_ "github.com/go-sql-driver/mysql" | |
) | |
var ( |
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
{ | |
"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 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 | |
} |