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
| cmd := exec.Command("split", "-l", "10000", "../training.csv", "sql_tmp/parts") |
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
| availableCores := runtime.NumCPU() | |
| runtime.GOMAXPROCS(availableCores) |
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
| fileList := make(chan string, len(files)) | |
| done := make(chan int, availableCores) | |
| for i := 0; i < availableCores; i++ { | |
| go threadedRead(i, columns, fileList, done) | |
| } | |
| for i := 0; i < len(files); i++ { | |
| fileList <- "sql_tmp/" + files[i].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
| func threadedRead(index int, columns string, files chan string, done chan int) { | |
| newFile, err := os.Create("./.safariql/cache_" + strconv.Itoa(index) + ".safariql") | |
| if err != nil { | |
| panic(err) | |
| } | |
| newFile.WriteString(columns + "\n") | |
| for file := range files { |
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 express = require('express'); | |
| var authRouter = express.Router(); | |
| var ejs = require('ejs'); | |
| const fs = require('fs'); | |
| const execFile = require('child_process').execFile; | |
| function qa_tools(){ | |
| console.log('running...') | |
| const child = execFile('qa-pat-links', | |
| ['-P', 'http://www.apple.com/iphone/'], |
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
| module.exports = (value1, value2) => { | |
| let a = value1.toString().split(""); | |
| let b = value2.toString().split(""); | |
| let new_value = []; | |
| for (i = 0; i < a.length; i++) { | |
| let apos = a[i]; | |
| let bpos = b[i]; |
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
| let emoji_list = [ | |
| "๐", "๐", "๐", "๐", "๐", "๐ ", "๐", "๐คฃ", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", | |
| "๐", "๐", "๐", "๐ค", "๐ค", "๐ค", "๐", "๐คก", "๐ค ", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "โน๏ธ", "๐ฃ", "๐", "๐ซ", "๐ฉ", | |
| "๐ค", "๐ ", "๐ก", "๐ถ", "๐", "๐", "๐ฏ", "๐ฆ", "๐ง", "๐ฎ", "๐ฒ", "๐ต", "๐ณ", "๐ฑ", "๐จ", "๐ฐ", "๐ข", "๐ฅ", "๐คค", "๐ญ", "๐", | |
| "๐ช", "๐ด", "๐", "๐ค", "๐คฅ", "๐ฌ", "๐ค", "๐คข", "๐คง", "๐ท", "๐ค", "๐ค", "๐", "๐ฟ", "๐น", "๐บ", "๐ฉ", "๐ป", "๐", "โ ๏ธ", "๐ฝ", | |
| "๐พ", "๐ค", "๐", "๐บ", "๐ธ", "๐น", "๐ป", "๐ผ", "๐ฝ", "๐", "๐ฟ", "๐พ", "๐", "๐", "๐", "๐", "๐ค", "๐", "๐", "๐", "โ", | |
| "๐ค", "๐ค", "๐ค", "โ๏ธ", "๐ค", "๐", "๐", "๐", "๐", "๐", "โ๏ธ", "โ", "๐ค", "๐", "๐", "๐", "๐ค", "๐ช", "๐", "โ๏ธ", "๐คณ", | |
| "๐ ", "๐", "๐", "๐", "๐", "๐ ", "๐", "๐", "๐ฃ", "๐", "๐", "๐ฃ", "๐ค", "๐ฅ", "๐ถ", "๐ฆ", "๐ง", "๐จ", "๐ฉ", "๐ฑ" | |
| ]; |
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 crypto = require('crypto'); | |
| let emoji_list = [ | |
| "๐", "๐", "๐", "๐", "๐", "๐ ", "๐", "๐คฃ", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", | |
| "๐", "๐", "๐", "๐ค", "๐ค", "๐ค", "๐", "๐คก", "๐ค ", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "โน๏ธ", "๐ฃ", "๐", "๐ซ", "๐ฉ", | |
| "๐ค", "๐ ", "๐ก", "๐ถ", "๐", "๐", "๐ฏ", "๐ฆ", "๐ง", "๐ฎ", "๐ฒ", "๐ต", "๐ณ", "๐ฑ", "๐จ", "๐ฐ", "๐ข", "๐ฅ", "๐คค", "๐ญ", "๐", | |
| "๐ช", "๐ด", "๐", "๐ค", "๐คฅ", "๐ฌ", "๐ค", "๐คข", "๐คง", "๐ท", "๐ค", "๐ค", "๐", "๐ฟ", "๐น", "๐บ", "๐ฉ", "๐ป", "๐", "โ ๏ธ", "๐ฝ", | |
| "๐พ", "๐ค", "๐", "๐บ", "๐ธ", "๐น", "๐ป", "๐ผ", "๐ฝ", "๐", "๐ฟ", "๐พ", "๐", "๐", "๐", "๐", "๐ค", "๐", "๐", "๐", "โ", | |
| "๐ค", "๐ค", "๐ค", "โ๏ธ", "๐ค", "๐", "๐", "๐", "๐", "๐", "โ๏ธ", "โ", "๐ค", "๐", "๐", "๐", "๐ค", "๐ช", "๐", "โ๏ธ", "๐คณ", | |
| "๐ ", "๐", "๐", "๐", "๐", "๐ ", "๐", "๐", "๐ฃ", "๐", "๐", "๐ฃ", "๐ค", "๐ฅ", "๐ถ", "๐ฆ", "๐ง", "๐จ", "๐ฉ", "๐ฑ" |
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 fs = require('fs'); | |
| const shaEmoji = require('./sha-emoji'); | |
| var BlockChain = require('./blockchain.json'); | |
| if (BlockChain.length == 0) { | |
| GenesisBlock( | |
| "๐บ๐ฌ๐๐ฑ๐ง๐๐ค๐บ๐๐ฎ๐ท๐ณโ๏ธ๐ค๐คง๐ค๐ป๐ค๐๐ค๐ฉโ๏ธ๐ค๐๐๐๐ป๐๐๐พ๐ค๐ป๐ณ๐ฎ๐คง๐จ๐ค๐ค๐ค๐๐ค๐คข๐ค๐ช", | |
| Number(new Date()), | |
| "๐" |
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
| <!-- Can replace this with your proxy URL (not necessary though) --> | |
| <script src="https://freelytics.chriscates.ca/js/jquery.js"></script> | |
| <script src="https://freelytics.chriscates.ca/js/freelytics.js"></script> | |
| <script>freelytics_id = "YOUR_IDENTIFIER_HERE";</script> |