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
// Import required Node.js modules | |
const { exec } = require("child_process"); | |
const { promisify } = require("util"); | |
const fs = require("fs").promises; | |
// Promisify the exec function to use with async/await | |
const execAsync = promisify(exec); | |
(async () => { | |
try { |
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 persistUserToStore = user => localStorage.setItem( | |
"user", | |
JSON.stringify(user) | |
); | |
class UserProvider extends Component { | |
state = { | |
user: {....} | |
}; |
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
Git: | |
radera fil i repo: | |
git rm path/fil | |
git add -u (bara dem filer som redan traskas) | |
git add . alla ändringar | |
git add -u | |
git reset |
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
PLUGINS: | |
- eamodio.gitlens | |
- esbenp.prettier-vscode | |
- icrawl.discord-vscode | |
- midnightsyntax.vscode-wrap-console-log | |
- mikestead.dotenv | |
- monokai.theme-monokai-pro-vscode | |
- ms-python.python | |
- ms-vsliveshare.vsliveshare | |
- wix.vscode-import-cost |
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
/* | |
Author: Martin Nordström | |
Created: 2018/03/09 | |
Keep coding! | |
*/ | |
// REVERSE A STRING CHALLENGE | |
// Return string in reverse | |
function reverseString(str) {} |