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
extern crate anyhow; | |
extern crate async_std; | |
extern crate ed25519_dalek; | |
extern crate ipfs_embed; | |
extern crate libipld; | |
extern crate rand; | |
extern crate spmc; | |
extern crate tempdir; | |
use anyhow::Result; |
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
#include <CL/sycl.hpp> | |
#include <array> | |
#include <chrono> | |
#include <cmath> | |
#include <iostream> | |
using namespace sycl; | |
constexpr uint N = 32; | |
float C = powf(10.0, -5.0); |
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
#version 450 | |
#pragma shader_stage(compute) | |
layout(local_size_x = 8, local_size_y = 4, local_size_z = 1) in; | |
layout(set = 0, binding = 0) buffer readonly MatrixA { | |
int[1<<20] matrix_a; | |
}; | |
layout(set = 0, binding = 1) buffer readonly MatrixB { |
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
#version 450 | |
#pragma shader_stage(compute) | |
layout(local_size_x = 32, local_size_y = 1, local_size_z = 1) in; | |
layout(set = 0, binding = 0) buffer matrix_block { | |
int[1024][1024] matrix; | |
}; | |
void main() { |
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
[package] | |
name = "avail-ipld" | |
version = "0.1.0" | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
libipld = {version = "0.12.0", features = ["unleashed"]} | |
multihash = "0.14.0" |
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
module rlnc_in_storage | |
go 1.16 | |
require github.com/itzmeanjan/kodr v0.2.0 |
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
use dusk_plonk::fft::EvaluationDomain; | |
use dusk_plonk::prelude::BlsScalar; | |
mod utils { | |
use dusk_plonk::fft::EvaluationDomain; | |
use dusk_plonk::prelude::BlsScalar; | |
use rand::rngs::StdRng; | |
use rand::{Rng, SeedableRng}; | |
use std::time::{SystemTime, UNIX_EPOCH}; |
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
#!/usr/bin/python3 | |
from requests import post | |
def find_missing_depositBlockIds(): | |
url = 'https://mainnet.infura.io/v3/<project-id>' | |
from_ = 10_167_767 | |
to_ = from_ + 1_000 | |
stop_ = 12_908_120 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/python3 | |
from typing import List, Tuple | |
from prime_ring import PrimeRing | |
from galois import GF | |
class Decoder: | |
def __init__(self, target_rank: int) -> None: | |
self._target_rank = target_rank |