$ docker
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
// another approach is used by libraries such as jQuery | |
// similar to annoymouns-closure.js but now we passing global variables as parameters | |
var $ = { window: {} }; | |
(function (globalVariable) { | |
// Keep this variables private inside this closure scope | |
var privateFunction = function() { | |
console.log('Shhhh, this is private!'); | |
} |
Installing hyper-material-theme
. Just follow these instructions.
Set Hyper to use WSL's Bash by default
- Open up Hyper and type
Ctrl
+,
- Scroll down to
"shell"
in the config and change it toC:\\Windows\\System32\\bash.exe
- Reload Hyper
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
// Simple logging functionality | |
const sqrt = Math.sqrt; | |
console.log("result", sqrt(16)) | |
console.log("result", sqrt(9)) | |
// ======= logging ====== // | |
// Introducing logging within the function |
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
# find various file extensions and copy to provided directory | |
# https://stackoverflow.com/questions/5241625/find-and-copy-files | |
find / \( -name "*.html" \) -exec cp {} /<directory>; | |
# grep to find emails | |
# https://stackoverflow.com/questions/2898463/using-grep-to-find-all-emails | |
grep -Eiorh '([[:alnum:]_.-]+@[[:alnum:]_.-]+?\.[[:alpha:].]{2,6})' "$@" * | sort | uniq > <filename>.txt |
NewerOlder