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 test_cwd = bru.cwd() | |
console.log(test_cwd); | |
const fs = require('fs'); | |
const path = require('path'); | |
if (typeof btoa === 'undefined') { | |
global.btoa = (str) => Buffer.from(str, 'binary').toString('base64'); | |
} |
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
[ | |
{ | |
"id": 1020044904, | |
"created_at": "2020-08-09T16:53:24+00:00", | |
"privacy": false, | |
"profile": true, | |
"url": "/photo/1020044904/Piano-lessons-by-Glauco-Pater", | |
"user_id": 271978, | |
"status": 1, | |
"width": 2048, |
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> | |
<body> | |
<script> | |
const vals = Array.from(Array(100000).keys()); | |
const s = 'All work and no play makes Jack a dull boy'; | |
let content = ""; | |
vals.forEach((elem, index) => { | |
content += `<div>${index}: ${s}</div>`; | |
}); |
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
{"lastUpload":"2019-08-05T08:50:12.344Z","extensionVersion":"v3.2.9"} |
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 glob = require("glob"); | |
const MAX_FILES = 100000; | |
const regex = />(.*?)</g; | |
const resultFile = "results.json"; | |
const appPath = | |
"./app"; | |
function parseInput(str) { |
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 fs = require('fs'); | |
const path = 'MyFile.js'; | |
const svgList= []; | |
fs. readFile(path, 'utf8', function(err, contents) { | |
const end_tokens = contents.split("</Svg>"); | |
end_tokens.map(token => { | |
svgList.push(token.split("<Svg ")[1]) | |
}); |
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
//npm install connect serve-static | |
var connect = require('connect'); | |
var serveStatic = require('serve-static'); | |
connect().use(serveStatic(__dirname)).listen(8081, function(){ | |
console.log('Server running on 8081...'); | |
}); |