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)), | |
); |
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
View introrx.md
The introduction to Reactive Programming you've been missing
(by @andrestaltz)
This tutorial as a series of videos
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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) { |
View gist:7360908
People
![]() :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: |
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/
- Example: https://gist.github.com/atenni/5604522/raw/
- Works even when you change the filename.
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
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
View .block
license: gpl-3.0 | |
redirect: https://observablehq.com/@d3/diverging-bar-chart |
NewerOlder