This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim.cmd([[ | |
let mapleader = ' ' | |
]]) | |
require('packer').startup(function(use) | |
use "BurntSushi/ripgrep" | |
use "danilamihailov/beacon.nvim" | |
use "folke/todo-comments.nvim" | |
use "folke/trouble.nvim" | |
use "goolord/alpha-nvim" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# updates | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install ufw vim tmux htop curl wget -y | |
# setup fw | |
sudo ufw allow 22/tcp | |
sudo ufw allow 30333/tcp | |
sudo ufw enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Reef Validator | |
[Service] | |
ExecStart=/bin/reef-node --base-path /reef/validator --validator --chain mainnet --execution=wasm --port 30333 --no-private-ipv4 --no-mdns --no-prometheus --no-telemetry --name MyValidatorNode | |
Restart=always | |
RestartSec=120 | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This module implements the Lowess function for nonparametric regression. | |
Functions: | |
lowess Fit a smooth nonparametric regression curve to a scatterplot. | |
For more information, see | |
William S. Cleveland: "Robust locally weighted regression and smoothing | |
scatterplots", Journal of the American Statistical Association, December 1979, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from scipy.stats.mstats import gmean, hmean | |
def cv_store(desc, kaggle, tcv, kcv, valid, filename='cvhist.csv'): | |
""" | |
Takes the latest CV and LB results and stores them into a csv file. | |
Args: | |
desc: Submission description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, pickle, gc, json | |
import datetime as dt | |
from pprint import pprint | |
from tqdm import tqdm_notebook as tqdm | |
from funcy import * | |
import numpy as np | |
import pandas as pd | |
import pandas_profiling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- mode: c++ -*- | |
// Copyright 2016 Keyboardio, inc. <[email protected]> | |
// See "LICENSE" for license details | |
#ifndef BUILD_INFORMATION | |
#define BUILD_INFORMATION "locally built" | |
#endif | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Adopted from: | |
https://github.com/raiden-network/microraiden/blob/436562a60521c0b321edec822980807c3ac6bca4/microraiden/utils/crypto.py | |
MIT License | |
Copyright (c) 2017 | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trezorctl ethereum_sign_tx \ | |
-a "https://kovan.infura.io/ozjwZqhs7RoSCF4vXPt7", \ | |
-c 42 \ | |
-n "m/44'/60'/0'/0/0" \ | |
-v "0.1 ether" \ | |
-g 21000 \ | |
-i 0 \ | |
-p \ | |
"0x7c1df549561f7fb1bc6eeac311facd051daf277f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
import binascii | |
from trezorlib.client import TrezorClient, CallException | |
from trezorlib import messages as proto | |
def get_transport_class_by_name(name): | |
if name == 'usb': |
NewerOlder