Skip to content

Instantly share code, notes, and snippets.

View Jeongseup's full-sized avatar
🏃‍♂️
Running

Jeongseup Jeongseup

🏃‍♂️
Running
View GitHub Profile
pragma circom 2.1.4;
template Num2Bits(nBits) {
signal input x;
signal output b[nBits];
for (var i = 0; i < nBits; i++) {
b[i] <-- x \ (2 ** i) % 2;
}
@Jeongseup
Jeongseup / httpget.go
Created January 13, 2023 03:27 — forked from kylelemons/httpget.go
Send a bunch of HTTP requests via threads and goroutines
package main
import (
"fmt"
"http"
"flag"
"runtime"
"bytes"
"log"
)
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
@Jeongseup
Jeongseup / first_app.sol
Created December 14, 2021 09:10
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract Counter {
uint public count;
// Function to get the current count
function get() public view returns (uint) {
return count;
}
@Jeongseup
Jeongseup / hello_world.sol
Created December 14, 2021 09:05
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// compiler version must be greater than or equal to 0.8.10 and less than 0.9.0
pragma solidity ^0.8.10;
contract HelloWorld {
string public greet = "Hello World!";
}