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
{ | |
"files.autoSave": "afterDelay", | |
"editor.tabSize": 2, | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": true | |
}, | |
"[typescript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": true |
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
{ | |
"name": "pika-example", | |
"version": "1.0.0", | |
"description": "This is an empty project only used to show the default configuration for Pika pack", | |
"main": "index.js", | |
"author": "Manuel Tuero <manuel.tuero@blackbox-vision.tech>", | |
"license": "MIT", | |
"scripts": { | |
"link": "npm run build && npm link pkg", | |
"clean": "rimraf pkg", |
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
/* Functional composition */ | |
const greet = x => `Hello ${x}`; // f | |
const emote = x => `${x} :)`; // g | |
const compose = (f, g) => x => f(g(x)); // fog(x) = f[g(x)] | |
/* Use example */ | |
compose(greet, emote)('Manu'); | |
// "Hello Manu :)" |
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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |