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
| // This script runs every time a cell is changed | |
| function onEdit(e) { | |
| var thisSheet = SpreadsheetApp.getActiveSheet(); | |
| var editedCell = e.range.getA1Notation(); | |
| var editedRow = e.range.getRow(); | |
| var editedCol = e.range.getColumn(); | |
| var editedA1Col = columnToLetter(editedCol); | |
| // @@ DEBUG |
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
| function onConnectivityChange(state) { | |
| console.log("Connection is: " + state); | |
| } | |
| function onBarcodeScanned(data) { | |
| console.log(data.barcode); | |
| } | |
| var app = { | |
| initialize: function() { |
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
| function onDeviceConnected(data) { | |
| alert("onDeviceConnected: " + data); | |
| } | |
| function onSuccessScanPaymentCard(data) { | |
| alert("onSuccessScanPaymentCard: " + data); | |
| } | |
| function onBarcodeScanned(data) { | |
| alert("onBarcodeScanned: " + data.rawCodesArr); |
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
| <!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 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
| 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 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
| 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 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 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 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
| <?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 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
| 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 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 ( | |
| "database/sql" | |
| "log" | |
| _ "github.com/go-sql-driver/mysql" | |
| ) | |
| var ( |