Skip to content

Instantly share code, notes, and snippets.

View manutuero's full-sized avatar
:octocat:

Manuel de Dios Tuero manutuero

:octocat:
View GitHub Profile
{
"files.autoSave": "afterDelay",
"editor.tabSize": 2,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
@manutuero
manutuero / package.json
Created April 29, 2020 12:40
Pika example config
{
"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",
@manutuero
manutuero / composition.js
Created November 19, 2018 12:32
A functional composition example in Javascript ES6.
/* 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 :)"
@manutuero
manutuero / gist:a4d68a5f66b071e0d8aa0cb84b67163b
Created July 27, 2018 14:53 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
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