Skip to content

Instantly share code, notes, and snippets.

npx danguilherme

Guilherme Ventura danguilherme

npx danguilherme
View GitHub Profile
xialvjun / setIn.js
Last active Feb 23, 2021
immutable version of lodash/set
View setIn.js
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 /
Last active Jul 25, 2018 — forked from tacsio/Git Configs
My git config
git config --global "Guilherme Ventura"
git config --global ""
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 checkout

Git Cheat Sheet

Visit my blog.


Getting Started

git init


staltz /
Last active Apr 17, 2021
The introduction to Reactive Programming you've been missing
simonellistonball / isin-validator.js
Created Feb 5, 2014
ISIN validation in javascript
View isin-validator.js
* @author sellistonball
* Calculates a check digit for an isin
* @param {String} code an ISIN code with country code, but without check digit
* @return {Integer} The check digit for this code
function calcISINCheck(code) {
rxaviers / gist:7360908
Last active Apr 17, 2021
Complete list of github markdown emoji markup
View gist:7360908


: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 /
Last active Apr 14, 2021
How to permalink to a gist's raw file

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


To return the first file from a gist:[gist_user]/[gist_id]/raw/

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

nicerobot /
Last active Apr 12, 2021
Mac OS X uninstall script for packaged install of node.js from

To run this, you can try:

curl -ksO
chmod +x ./
mbostock / .block
Last active Sep 2, 2020
Bar Chart with Negative Values
View .block
license: gpl-3.0