Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ashish 0xAshish

🎯
Focusing
View GitHub Profile
@HarryR
HarryR / bls.py
Created May 24, 2019
BLS signatures for Python / Ethereum (WIP)
View bls.py
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:
https://crypto.stanford.edu/~dabo/pubs/papers/BLSmultisig.html
@Recmo
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
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 https://github.com/Project-Arda/bgls
Code is based on https://github.com/jstoxrocky/zksnarks_example
*/
contract BLSExample {
@vasanthk
vasanthk / System Design.md
Last active Oct 27, 2021
System Design Cheatsheet
View System Design.md

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
karpathy / min-char-rnn.py
Last active Oct 27, 2021
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
View min-char-rnn.py
"""
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
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
dideler / 0-startup-overview.md
Last active Oct 20, 2021
Startup Engineering notes
View 0-startup-overview.md
@amaxwell01
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:

tmux

start new with session name:

tmux new -s myname