Skip to content

Instantly share code, notes, and snippets.

View richard-ramos's full-sized avatar
👷‍♂️

richΛrd richard-ramos

👷‍♂️
View GitHub Profile
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"16Uiu2HAm8mUZ18tBWPXDQsaF7PbCKYA35z7WB2xNZH2EVq1qS8LJ": {
"protocols": [
"/vac/waku/filter-subscribe/2.0.0-beta1",
"/vac/waku/filter/2.0.0-beta1",
"/vac/waku/peer-exchange/2.0.0-alpha1",
"/libp2p/autonat/1.0.0",
package main
import (
"context"
"crypto/rand"
"encoding/hex"
"fmt"
"net"
"os"
"os/signal"
package main
import (
"context"
"fmt"
"net"
"os"
"os/signal"
"syscall"
"time"
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name="viewport" />
<link rel="icon" href="data:,">
<title>String art</title>
<script type="text/javascript" src="jquery.min.js"></script>
<style>
html, body {
import collections
import math
import os
import cv2
import numpy as np
import time
MAX_LINES = 4000
N_PINS = 36*8
MIN_LOOP = 20 # To avoid getting stuck in a loop
@richard-ramos
richard-ramos / libgowaku.h
Created August 4, 2023 12:19
libgowaku.h
/* Code generated by cmd/cgo; DO NOT EDIT. */
/* package github.com/waku-org/go-waku/library/c */
#line 1 "cgo-builtin-export-prolog"
#include <stddef.h>
#ifndef GO_CGO_EXPORT_PROLOGUE_H
@richard-ramos
richard-ramos / rln-trusted-setup-ceremony_attestation.log
Created August 2, 2023 13:01
Attestation for RLN Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm richard-ramos-1106587 and I have contributed to the RLN Trusted Setup Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (rln-withdraw)
Contributor # 18
Contribution Hash: 08410046 ed2a6cad f31e3330 4a64d190
3246042e 42463023 57745d72 79fe8ff0
a74ea086 024d4f4c 6805daf7 2191ab43
24118c57 0fb5ceb5 4c96fe34 5b0b897b
@richard-ramos
richard-ramos / main.go
Last active September 11, 2023 14:41
Producer/Consumer
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
)
[2023-05-04T17:46:39.458Z] + nix develop --impure .#default --command bash -c 'make test-ci'
[2023-05-04T17:46:39.844Z] curl -sfL https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 --output ./coverage/cc-test-reporter # TODO: support mac and windows
[2023-05-04T17:46:42.388Z] chmod +x ./coverage/cc-test-reporter
[2023-05-04T17:46:42.388Z] CC_TEST_REPORTER_ID=c09efa7c67c269bfdc6f8a356785d8f7ed55c9dc2b9a1d07b78c384f55c4e527 ./coverage/cc-test-reporter before-build
[2023-05-04T17:46:42.388Z] /nix/store/ixhyjwl4qwdy0dr9k6c1zhphjr1b00gn-go-1.19.6/bin/go test -timeout 300s ./waku/... -coverprofile=./c.out.tmp
[2023-05-04T17:46:45.690Z] ? github.com/waku-org/go-waku/waku [no test files]
[2023-05-04T17:46:45.690Z] ? github.com/waku-org/go-waku/waku/cliutils [no test files]
[2023-05-04T17:46:46.513Z] ok github.com/waku-org/go-waku/waku/metrics 1.018s coverage: 77.3% of statements
[2023-05-04T17:46:46.513Z] ok github.com/waku-org/go-waku/waku/persistence 0.024s coverage: 43.4% of
/* Code generated by cmd/cgo; DO NOT EDIT. */
/* package github.com/waku-org/go-waku/library */
#line 1 "cgo-builtin-export-prolog"
#include <stddef.h>
#ifndef GO_CGO_EXPORT_PROLOGUE_H