flowchart TD
%%{ init: { 'flowchart': { 'curve': 'monotoneY' } } }%%
subgraph vaultFactory[Vault Factory]
direction BT
vfT1[The vaultFactory owns a number of VaultManagers and a mint for Minted] ---> vfT2
vfT2[vaultFactory is a 'Vault Director Machine' <br/> <br /> - it creates the vaultDirector </br> - vaultDirector is root user] --> vfT3
- Part 1: An Intro to Functional Programming Concepts in JavaScript
- Part 2: An Intro to Functional Programming Concepts in JavaScript
- Part 3: An Intro to Functional Programming Concepts in JavaScript
- Dipping into wu.js: autoCurry
- Haskell in ES6: Part 1
- [Haskell in ES6: Part 2](http://casualjavascript.
I hereby claim:
- I am tgrecojs on github.
- I am tgrex (https://keybase.io/tgrex) on keybase.
- I have a public key ASA5uPWzWkk7TmfvtMAuxDOTC_VyWc3hNLybADS0Hgyyawo
To claim this, I am signing this object:
This file contains hidden or 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
// Better way | |
const getValue = ({value}) => value; | |
const add = x => y => x + y; | |
const addTen = add(10); | |
const multiply = x => y => x * y; | |
const displayValue = string => value => `${string}::${value}`; | |
const displayLeverageRatio = displayValue('Leverage Ratio'); |
This file contains hidden or 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
const Either = (() => { | |
const Right = x => ({ | |
chain: f => f(x), | |
ap: other => other.map(x), | |
alt: other => Right(x), | |
extend: f => f(Right(x)), | |
concat: other => | |
other.fold( | |
x => other, | |
y => Right(x.concat(y)), |
This file contains hidden or 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
import sampleData from './sampleData.js'; | |
/** | |
* Uniswaph V3 Subgraph Data | |
* | |
* Result of Qu | |
*/ | |
const queries = { | |
swaps: `{ | |
swaps(first: 20, where: {pool: |
Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.
The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e # always immediately exit upon error | |
# directory config. ending slashes are important! | |
# src_dir="$HOME/Projects/" | |
gdrive_projects-dir="$HOME/Google\ Drive/cloud-based-demo-applications" | |
# run the sync | |
rsync -ar --delete \ |
This file contains hidden or 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
const Day = ({ get, left, right }) => { | |
const map = f => Day ({ | |
get: f (extract()), | |
left, right | |
}) | |
const extend = f => | |
Day ({ | |
get: (left, right) => f (Day ({ get, left, right })), |
This file contains hidden or 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
const Maybe = { | |
Just: value => ({ | |
value, | |
map: f => Just(f(value)), | |
toString: () => `Just(${value})` | |
}), | |
Nothing: (value = null) => ({ | |
value: null, | |
map: f => Nothing(null), | |
toString: () => `Nothing(${value})` |