npm i live-server -g
live-server
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') | |
console.log('========= About to read /etc/hosts') | |
const buf = fs.readFile('/etc/hosts', (err, buf) => { | |
if (err) { | |
console.error('Error reading hosts file', err) | |
return | |
} | |
console.log('========= HOSTS FILE (start)') | |
console.log(buf.toString('utf-8')) |
I hereby claim:
- I am aceakash on github.
- I am akashkurdekar (https://keybase.io/akashkurdekar) on keybase.
- I have a public key ASBLsXBW33wBA9_9GdGVtJk55Tw3UJ7AIX8eqcKqCFms1Qo
To claim this, I am signing this object:
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 ( | |
"github.com/matryer/is" | |
"io" | |
"io/ioutil" | |
"strings" | |
"testing" | |
) |
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
/* | |
xq is from here: https://github.com/kislyuk/yq | |
xq '.' ./input-ufx.xml > input-ufx.json && node index.js | |
*/ | |
const fs = require('fs') | |
const ufxJsonFileName = "input-ufx.json" | |
const ufxJson = fs.readFileSync(ufxJsonFileName).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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { | |
myList := []int64{1,2,3,4,5,6,7,8,9} |
OlderNewer