Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
npx danguilherme

Guilherme Ventura danguilherme

👨‍💻
npx danguilherme
View GitHub Profile
@xialvjun
xialvjun / setIn.js
Last active Jun 5, 2019
immutable version of lodash/set
View setIn.js
// https://github.com/lodash/lodash/issues/1696
import {clone, setWith, curry} from 'lodash/fp';
// export const setIn = curry((path, value, obj) =>
// setWith(clone, path, value, clone(obj)),
// );
export const setIn = curry((obj, path, value) =>
setWith(clone, path, value, clone(obj)),
);
@danguilherme
danguilherme / git_configs.sh
Last active Jul 25, 2018 — forked from tacsio/Git Configs
My git config
View git_configs.sh
git config --global user.name "Guilherme Ventura"
git config --global user.email "guilhermeventura2@gmail.com"
git config --global push.default simple
git config --global color.ui true
git config --global alias.s status
git config --global alias.c checkout
git config --global alias.co checkout
View Getting-Cheat-Sheet.md

Git Cheat Sheet

Visit my blog.

Commands

Getting Started

git init

or

@staltz
staltz / introrx.md
Last active Dec 3, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
@rxaviers
rxaviers / gist:7360908
Last active Dec 3, 2020
Complete list of github markdown emoji markup
View gist:7360908

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@atenni
atenni / README.md
Last active Nov 21, 2020
How to permalink to a gist's raw file
View README.md

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@nicerobot
nicerobot / README.md
Last active Oct 23, 2020
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056
View README.md

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@mbostock
mbostock / .block
Last active Sep 2, 2020
Bar Chart with Negative Values
View .block
license: gpl-3.0
redirect: https://observablehq.com/@d3/diverging-bar-chart
@tacsio
tacsio / Git Configs
Last active Mar 27, 2020
My git config
View Git Configs
git config --global user.name "Tarcisio Coutinho"
git config --global user.email "tcs5cin@gmail.com"
git config --global color.ui true
git config --global alias.s status
git config --global alias.c checkout
git config --global alias.b branch
git config --global alias.lol log --oneline --graph --decorate
You can’t perform that action at this time.