This file contains 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 puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch({headless: true}) | |
var pages = await browser.pages() | |
var page = pages[0] | |
await page.goto('') |
This file contains 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
#!/bin/bash | |
dir="$(dirname "$(realpath "$0")")" | |
log="$( | |
date | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo rpi-update | |
sudo apt-get autoremove |
This file contains 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
require('http') | |
.createServer() | |
.listen({ | |
port: 4000 | |
}) | |
.on('request', (req, res) => { | |
res.end('Hello World!'); | |
}); |
This file contains 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 a = {}; | |
Object.keys(b).sort().forEach(key => { | |
a[key] = b[key]; | |
}); |
This file contains 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 clean(o) { | |
Object.keys(o).forEach(k => (!o[k] && o[k] !== undefined) && delete o[k]); | |
return o; | |
} |
This file contains 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
style | |
. | |
.someclass1{ | |
font-size:10px; | |
} | |
.someclass2{ | |
font-size:10px; | |
} | |
if options.key1=='a' | |
. |
This file contains 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') | |
var path = require('path') | |
var location = 'content' | |
fs.readdirSync(location) | |
.filter(x => { | |
return fs.lstatSync(path.join(location, x)).isDirectory() | |
}) | |
.forEach(dir => { |
This file contains 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
// REAL BLOGS, ENTIRELY OPTIMISED | |
https://blog.fefe.de/ | |
http://prog21.dadgum.com/ | |
https://zupzup.org/ | |
https://elliotec.com | |
https://www.tedunangst.com/flak/ | |
http://rtfm.killfile.pl/ | |
// OTHER BLOGS OR MOTIVATIONS YOU CAN CHECK |
This file contains 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
_ballplayertoucher | |
_firesmoke | |
_plasma | |
ai_ally_speech_manager | |
ai_battle_line | |
ai_changehintgroup | |
ai_changetarget | |
ai_goal_assault | |
ai_goal_follow | |
ai_goal_lead |