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:
I hereby claim:
To claim this, I am signing this object:
// 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'); |
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)), |
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
#!/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 \ |
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 })), |
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})` |
import curry from 'crocks/helpers/curry' | |
import or from 'crocks/logic/or' | |
import pathSatisfies from 'crocks/predicates/pathSatisfies' | |
import propSatisfies from 'crocks/predicates/propSatisfies' | |
const list = [ | |
'nice', 'bad', 'super bad' | |
] | |
const data = [ |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |