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
/* | |
https://github.com/tzwel | |
Tzwel - Midnight Glass | |
*/ | |
:root { | |
--header-primary: #fff; | |
--header-secondary: #b9bbbe; | |
--text-normal: #fff; |
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
import os | |
extensionsToDelete = [".zip", ".rar"] | |
files = os.listdir() | |
for file in files: | |
split_tup = os.path.splitext(file) | |
if split_tup[1] in extensionsToDelete: | |
print(file) |
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 numjs = (function () { | |
// Get a random number in range, accept generating multiple numbers optionally converted to a single Number | |
function range(min, max, times = 1, convert = false) { | |
let generatedNumber = Math.floor(Math.random() * (max - min + 1) + min) | |
if (times > 1) { | |
for (let i=1; i< times; i++) { | |
generatedNumber += Math.floor(Math.random() * (max - min + 1) + min).toString() | |
} |
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 http = require('http'); | |
let appOptions = { | |
'localHostUrl': 'http://localhost:' | |
//errorHandler | |
} | |
let routes = {} | |
const app = { |
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
"is this string empty?" | |
.replace(/[ ㅤ]/g, '') | |
.replace(/\r?\n|\r/g, '') | |
.replace(/<\/?[^>]+(?:>|$)?/g, '').trim().length === 0 |