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
clear; con_logfile cvarlist.txt; cvarlist; con_logfile end |
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 request = function(url) { | |
return new Promise((resolve, reject) => { | |
const lib = url.startsWith('https') ? require('https') : require('http'); | |
const request = lib.get(url, (response) => { | |
if (response.statusCode < 200 || response.statusCode > 299) { | |
reject(new Error('Failed to load page, status code: ' + response.statusCode)); | |
} | |
const body = []; | |
response.on('data', (chunk) => body.push(chunk)); | |
response.on('end', () => resolve(body.join(''))); |
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
// 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
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
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
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
@echo off | |
:: ouput the embeded text file to a temporary file | |
for /f "delims=:" %%N in ('findstr /nxl /c:"::BEGIN TEXT" "%~f0"') do ( | |
more +%%N "%~f0" >default_level_sounds.txt | |
) | |
:: loop through jump map files, and copy the embeded text file to <filename>_level_sounds.txt | |
for /f %%f in ('dir /b .\jump_*.bsp') do ( | |
copy "default_level_sounds.txt" "%%~nf_level_sounds.txt" >nul 2>&1 && echo %%~nf |
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 => { |