This file has been truncated, but you can view the full file.
This file contains hidden or 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
1,-1,126.682,445.587,489.079,205.913,0.996153,-1,-1,-1 | |
1,-1,1266.37,278.506,96.7231,78.263,0.977046,-1,-1,-1 | |
1,-1,868.04,167.253,70.4472,47.9104,0.968232,-1,-1,-1 | |
1,-1,1093.04,332.933,271.001,175.805,0.949291,-1,-1,-1 | |
1,-1,1313.3,107.605,58.4822,22.9558,0.926559,-1,-1,-1 | |
1,-1,1012.45,127.749,82.496,60.7935,0.907068,-1,-1,-1 | |
1,-1,385.654,66.6637,28.8267,22.0213,0.872974,-1,-1,-1 | |
1,-1,1126.07,173.51,93.9868,67.1671,0.826612,-1,-1,-1 | |
1,-1,909.518,215.13,92.9806,92.0938,0.719844,-1,-1,-1 | |
1,-1,1648.93,87.9435,87.5293,51.9693,0.703511,-1,-1,-1 |
This file contains hidden or 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
============================================================== | |
create chanel node1 <=> node2 | |
============================================================== | |
node1.create_channel() | |
node1 !SendOpenChannel | |
node1 => node2 msgs::open_channel | |
node2 => node1 msgs::accept_channel | |
node1 !FundingGenerationReady |
This file contains hidden or 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
extern crate lightning; | |
extern crate secp256k1; | |
use secp256k1::key::PublicKey; | |
use secp256k1::{Secp256k1}; | |
use lightning::ln::msgs; | |
use lightning::util::reset_rng_state; | |
use std::sync::atomic::{AtomicUsize,Ordering}; |
This file contains hidden or 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 ecc | |
from ecc import PrivateKey | |
from random import randint | |
from helper import double_sha256, little_endian_to_int | |
# patch | |
ecc.FieldElement.__neg__ = lambda self: self.__class__(self.prime - self.num, self.prime) | |
ecc.Point.__sub__ = lambda self, other: self + (-other) | |
ecc.Point.__neg__ = lambda self: self.__class__(None, None, self.a, self.b) if self.x is None else self.__class__(self.x, -self.y, self.a, self.b) |
This file contains hidden or 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
0x1339c57B3186CFFBc669a646e52D005a7C66b5F2 |
This file contains hidden or 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 numpy as np | |
import sklearn.datasets | |
import sklearn.ensemble | |
import xgboost | |
N_TRAIN = 60000 | |
NS_ITERATIONS = [2 ** k for k in range(8)] | |
MODELS = [ | |
('RandomForestClassifier', sklearn.ensemble.RandomForestClassifier, {'n_jobs': -1}), |
This file contains hidden or 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
package main | |
import ( | |
git "github.com/libgit2/git2go" | |
"log" | |
) | |
func credentialsCallback(url string, username string, allowedTypes git.CredType) (git.ErrorCode, *git.Cred) { | |
ret, cred := git.NewCredSshKey("git", "/home/vagrant/.ssh/id_rsa.pub", "/home/vagrant/.ssh/id_rsa", "") | |
return git.ErrorCode(ret), &cred |
This file contains hidden or 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
""" | |
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) |