Skip to content

Instantly share code, notes, and snippets.


Ashish 0xAshish

View GitHub Profile
HarryR /
Created May 24, 2019
BLS signatures for Python / Ethereum (WIP)
from functools import reduce
import binascii
from os import urandom
from py_ecc.bn128 import *
from sha3 import keccak_256
Implements BLS signatture aggregation as described at:
Recmo / MerkleVerifier.sol
Created Jan 29, 2019
Merkle multi-queries
View MerkleVerifier.sol
contract MerkleVerifier {
function hash_leaf(uint256 value)
internal pure
returns (bytes32 hash)
return bytes32(value);
function hash_node(bytes32 left, bytes32 right)
BjornvdLaan / BLSExample.sol
Last active Oct 10, 2021
Verification of BLS signatures and BGLS aggregate signatures in Ethereum
View BLSExample.sol
pragma solidity ^0.4.14;
Example of how to verify BLS signatures and BGLS aggregate signatures in Ethereum.
Signatures are generated using
Code is based on
contract BLSExample {
vasanthk / System
Last active Oct 27, 2021
System Design Cheatsheet
View System

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
karpathy /
Last active Oct 27, 2021
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
debasishg / gist:8172796
Last active Oct 18, 2021
A collection of links for streaming algorithms and data structures
View gist:8172796
  1. General Background and Overview
dideler /
Last active Oct 20, 2021
Startup Engineering notes
amaxwell01 / interviewitems.MD
Created Sep 15, 2012
My answers to over 100 Google interview questions
View interviewitems.MD

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname