Skip to content

Instantly share code, notes, and snippets.

Greg Slepak taoeffect

Block or report user

Report or block taoeffect

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jfet97
jfet97 / _objectsFlattening.js
Last active Jun 12, 2019
objects flattening
View _objectsFlattening.js
const obj = { a: { b: 1, c: 2, d: { e:4 , f:[1,2,3,4,5,6,7,8,9,0]} }, g:42 };
const res = Object.fromEntries(flatProps(objectRecursiveEntries(obj)));
/*
{
"a.b": 1,
"a.c": 2,
"a.d.e": 4,
"a.d.f.0": 1,
"a.d.f.1": 2,
View auditthezed.go
//fixed version here: https://github.com/acityinohio/auditthezed
/* Audits the Zcash blockchain using naive RPC calls
Requires txindex=1 option set in your zcash.conf */
package main
import (
"encoding/json"
"fmt"
View sapling-mpc-verification.md

How do I verify the Sapling MPC?

What you'll need

  1. Install the Rust compiler. A version from a year ago will work but the recent one is fine too.
  2. Download the transcript from the Powers of Tau MPC. (See the links here.)
  3. Download the params file from the Sapling MPC.
  4. Check out the attestations for the Powers of Tau MPC. (Similar can be found for the Sapling MPC but participants chose various ways to distribute their attestations, they have not been coalesced into a single repository.)

Step 1: Verify Powers of Tau

@angristan
angristan / mstdn.io_blocklist.md
Last active Jul 18, 2019
mstdn.io block list
View mstdn.io_blocklist.md

mstdn.io block list

Reminder on block types

Block type Explanation
Reject media Removes locally stored media files and refuses to download any in the future.
Silence Makes the account's/instance's posts invisible to anyone who isn't following them
Silence + reject media Combination of the two above
Suspend Removes all of the account's content, media, and profile data
@yogthos
yogthos / gallery.cljs
Last active Jul 20, 2018
script to download walpapers from windowsonearth.org
View gallery.cljs
View "Instantly" Understand U.S. Monetary Policy.md

"Instantly" Understand U.S. Monetary Policy

Well, maybe. If any of this is confusing, see the Resources section at the bottom.

U.S. Economic Policy In A Nutshell

Quick terms (might differ a bit from other sources):

  • "T-bills"/"treasuries"/"bonds" (there are multiple types) = a promise (from the US government) to repay an amount of cash at a specific future date, with interest. These are not intended to be used as money to buy goods/services, but are a mechanism for "the fed" to manipulate interest rates, the amount of cash flowing through the economy, and the amount of cash that the government has to spend on things.
  • "Reserves" = cash (typically cash that a bank actually has).
View coinbase-slockup.md

Clarifying The "Free ETC" Coinbase Confusion

I do not work for Coinbase and do not in any way speak for or represent them. This post was hastily written and is probably full of typos!

This is my attempt to clarify the possibilities that might be going on, based on various Coinbase employee statements.

First, I should highlight that there has been a good amount of confusion created by the replay attacks going on between the "two" Ethereum chains. So much so that it seems to have confused just about everyone, including me, as to the details of what's going on with Coinbase's ETH/ETC (and other ETH/ETC).

I put "two" in quotes because at the moment it's more like there are "1.25 Ethereum chains" because of the replay attacks, which are causing almost every transaction to get mirrored on the other chain. Replay attacks are possible because Ethereum's hard fork did not take steps to make Ethereum transactions invalid on the original chain. Instead, all transactions are valid on both chains unless specia

@khovratovich
khovratovich / BranchSender.sol
Created Jul 21, 2016
Split contract by Mikhail Vladimirov
View BranchSender.sol
// Simple smart contract that allows anyone to send ether from one address to
// another in certain branch of the blockchain only. This contract is supposed
// to be used after hard forks to clearly separate "classic" ether from "new"
// ether.
contract BranchSender {
// Is set to true if and only if we are currently in the "right" branch of
// the blockchain, i.e. the branch this contract allows sending money in.
bool public isRightBranch;
// Instantiate the contract.
View Readme.md

Minimum Viable Async with Node 6

With the release of Node 6.0.0, the surface of code that needs transpilation to use ES6 features has been reduced very dramatically.

This is what my current workflow looks like to set up a minimalistic and fast microservice using micro and async + await.

The promise

@rauchg
rauchg / README.md
Last active Jun 7, 2019
require-from-twitter
View README.md
You can’t perform that action at this time.