Skip to content

Instantly share code, notes, and snippets.

View SAYONG's full-sized avatar

Worapob Boonprapai SAYONG

View GitHub Profile

Keybase proof

I hereby claim:

  • I am SAYONG on github.
  • I am sayong (https://keybase.io/sayong) on keybase.
  • I have a public key whose fingerprint is 3500 FB2C 3BAC FAEB FBBB 0A9E 0BFB 5F7B 0FED CCD4

To claim this, I am signing this object:

SIZE: constant(uint256) = 3365
container: address[SIZE]
@public
def store(ipt: address[SIZE]):
for i in range(SIZE):
self.container[i] = ipt[i]
SIZE: constant(uint256) = 3359
container: address[SIZE]
@public
def store(ipt: address[SIZE]):
for i in range(SIZE):
self.container[i] = ipt[i]
struct Bidder:
last_sequence: uint256
bidder_id: int128
WHITELIST_SIZE: constant(uint256) = 900
contractOwner: address
foo: address
whiteList: map(address, Bidder)
from eth_tester import EthereumTester
from web3 import Web3
from web3.providers.eth_tester import EthereumTesterProvider
from vyper import compiler
w3 = Web3(EthereumTesterProvider(EthereumTester()))
w3.eth.defaultAccount = sender = w3.eth.accounts[0]
@SAYONG
SAYONG / alfred_iterm_new_window.applescript
Created February 13, 2021 20:31 — forked from jtiala/alfred_iterm_new_window.applescript
Open new iTerm window for each Alfred terminal command
-- open new iTerm window for each Alfred terminal command
-- for iTerm 3.1.1+
-- based on script by Sinan (https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred)
on alfred_script(q)
if application "iTerm2" is running or application "iTerm" is running then
run script "
on run {q}
tell application \"iTerm\"
activate
@SAYONG
SAYONG / abi.json
Created October 21, 2021 16:59
Voting Contract
[
{
"inputs": [
{
"internalType": "address",
"name": "chairperson_",
"type": "address"
}
],
"stateMutability": "nonpayable",
@SAYONG
SAYONG / JiraStoryPoints.js
Last active June 17, 2022 08:10
Summarize JIRA story point by put the script to console of an active sprint page
var headers = [];
var values = [];
var ul = document.getElementById('ghx-column-headers');
var items = ul.getElementsByTagName("li");
var getHeader = (item) => {return item.querySelector('h2').textContent};
for (let i = 0; i < items.length; ++i) {
let header = getHeader(items[i]);
headers.push(header)
values.push(0)