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
| // make sure you have been login to https://www.newebpay.com/sale/Sell_center/search_transaction | |
| // copy and paste this snippit to web dev console | |
| // exportToCsv credit | |
| // https://stackoverflow.com/questions/14964035/how-to-export-javascript-array-info-to-csv-on-client-side | |
| function exportToCsv(filename, rows) { | |
| var processRow = function (row) { | |
| var finalVal = ''; | |
| for (var j = 0; j < row.length; j++) { | |
| var innerValue = row[j] === null ? '' : row[j].toString(); |
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
| IMAGE_NAME=your-image-name | |
| NAS_URI=yourname@yournas.com | |
| ARCHIVE_FILE_NAME=archive.tar | |
| REMOTE_PATH=/a/remote/path | |
| REMOTE_PORT=22 | |
| PORTMAP=1111:1111 | |
| rm $ARCHIVE_FILE_NAME | |
| docker rmi $IMAGE_NAME | |
| docker build . -t $IMAGE_NAME |
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
| const app = { | |
| name: 'solar-watcher-client', | |
| script: './index.js', | |
| env: { | |
| CLIENT_ID: 'J=_pxGn4m5W4(=v', | |
| CLIENT_LOGGER_URL: 'http://solar-data.zackexplosion.fun', | |
| CLIENT_SERIAL_PORT_PATH: '/dev/serial/by-id/usb-FTDI_FT231X_USB_UART_D309Q80Z-if00-port0', | |
| }, | |
| } |
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
| var obj = { | |
| "name" : { | |
| full_name: 'Hello', | |
| given: ['a name', 'b name', 'c name'] | |
| }, | |
| "tel" : { | |
| phone: '0000000', | |
| mobile: '+886 11111111' | |
| }, | |
| "address" : '天龍區' |
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
| class Здравствуй { | |
| constructor(){ | |
| const d1 = new Date() | |
| const d2 = new Date().getTime().toString() | |
| const output = `\r ${d1} ${d2}` | |
| process.stdout.write(output) | |
| setTimeout(function(){ | |
| new Здравствуй() |
OlderNewer