Skip to content

Instantly share code, notes, and snippets.

View bbenligiray's full-sized avatar

Burak Benligiray bbenligiray

View GitHub Profile
@bbenligiray
bbenligiray / gist:739bed51ba744584252836614e03ee2f
Created December 21, 2021 11:05
Median and SelectK contracts
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
/// @author Sasa Milic - <sasa@api3.org>
/// @title Median reduction contract
/// @notice Median reduction is robust against misreports, yet it is not as
/// numerically accurate as mean beacuse it depends on a single data point. It
/// should be used when numerical accuracy is not critical or as a part of a
/// more complex reduction method such as MeanMedianHybrid.sol.

Keybase proof

I hereby claim:

  • I am bbenligiray on github.
  • I am bbenligiray (https://keybase.io/bbenligiray) on keybase.
  • I have a public key ASBSyQEPLZFejKzhZOSfrBCbGMPBZHLQ-nhwi3XgFLddBwo

To claim this, I am signing this object:

git submodule add ssh://bla submodule_dir
git submodule init
git submodule update (pulls submodules)
git submodule update --remote --merge (updates submodules)
import keras
import numpy as np
def generator():
while 1:
yield np.random.rand(32, 150528), np.random.rand(32, 2)
set number " show line numbers
set ruler " dispaly position at bottom
set cursorline " draws line below current line
set encoding=utf-8
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |