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
[BITS 64] | |
global _start | |
%define AF_INET 0x2 | |
%define SOCKET_BACKLOG 0x0 | |
%define O_RDONLY 0x0 | |
%define O_WRONLY 0x1 | |
%define O_CREAT 0q100 | |
struc sockaddr_in |
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
// Not easiest solution, designed to showcase rust's multithreading capabilities | |
use std::{ | |
collections::HashMap, | |
sync::{mpsc::Sender, Arc}, | |
thread, | |
}; | |
type IntervalHashmap = HashMap<InputType, Vec<[u64; 3]>>; |
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
#!/usr/bin/python3 | |
## Hackathon: Hello World! by Polkadot | |
## Author @tudorog - GitHub | |
## Challenge: [ADVANCED CHALLENGE] REST APIs - Read An Account's Pending Payouts | |
import requests | |
SIDECAR_API = "http://127.0.0.1:8080" | |
ALLOWED_METHODS = ["post", "get"] |
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
def DFT(y): | |
#Initialize empty array to store resulting points in frequency space | |
fy = np.zeros((len(y)), dtype="float") | |
for i in range(int(len(y)/2)): #only compute until nyquist limit | |
fy[i] = 0 | |
a = 0 | |
b = 0 | |
for j in range(len(y)): | |
#Use euler's formula |