Skip to content

Instantly share code, notes, and snippets.

View raullenchai's full-sized avatar
🎯
Focusing

Raullen Chai raullenchai

🎯
Focusing
View GitHub Profile
@raullenchai
raullenchai / main.go
Created June 6, 2023 17:36
My W3bstream Demo
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
"time"
)
/**
*Submitted for verification at Etherscan.io on 2021-04-22
*/
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
{
"name": "as.up.data.forward",
"time": "2021-07-02T04:36:04.706624415Z",
"identifiers": [
{
"device_ids": {
"device_id": "2cf7f121210001fc",
"application_ids": {
"application_id": "453sdf1sd"
}
=== RUN TestActionProtoAndVerify
=== RUN TestActionProtoAndVerify/no_error
=== RUN TestActionProtoAndVerify/empty_public_key
=== RUN TestActionProtoAndVerify/gas_limit_too_low
=== RUN TestActionProtoAndVerify/invalid_signature
--- PASS: TestActionProtoAndVerify (0.00s)
--- PASS: TestActionProtoAndVerify/no_error (0.00s)
--- PASS: TestActionProtoAndVerify/empty_public_key (0.00s)
--- PASS: TestActionProtoAndVerify/gas_limit_too_low (0.00s)
--- PASS: TestActionProtoAndVerify/invalid_signature (0.00s)
May 25 04:17:44 PM ==> Cloning from https://github.com/iotexproject/babel-api...
May 25 04:17:50 PM ==> Checking out commit 168211c8d58e4556a29ed38808dbf3a31b05291b in branch main
May 25 04:18:05 PM ==> Detected Node version 14.17.0
May 25 04:18:06 PM ==> Running build command 'npm i && npm install -g pm2 && npm run build '...
May 25 04:18:16 PM
May 25 04:18:16 PM > scrypt@github:barrysteyn/node-scrypt#fb60a8d3c158fe115a624b5ffa7480f3a24b03fb preinstall /opt/render/project/src/node_modules/scrypt
May 25 04:18:16 PM > node node-scrypt-preinstall.js
May 25 04:18:16 PM
May 25 04:18:17 PM
May 25 04:18:17 PM > scrypt@6.0.3 preinstall /opt/render/project/src/node_modules/scrypt.js/node_modules/scrypt
1.136.31.205
37.159.93.252
2.57.169.161
221.243.200.162
3.95.137.114
120.22.90.135
201.87.103.132
86.184.112.147
47.92.39.243
1.127.104.9
@raullenchai
raullenchai / MyTrade.sol
Last active October 30, 2020 22:59
Using Contract to trade on mimo.exchange
pragma solidity >=0.5.10;
import "./SafeMath.sol";
import "./IMimoExchange.sol";
contract MyTrade {
using SafeMath for uint256;
IMimoExchange public mimoExchange = IMimoExchange(0xb3972201f3Ae2b382665ca129Bd28d056758DBe2);
address public vitatoken = 0xB8744aE4032Be5E5ef9FaB94ee9C3bf38D5D2AE0;
@raullenchai
raullenchai / gist:2e79a64187ac8ca62ef7198b14136b3d
Last active July 30, 2019 03:52
need a tool to import csv to mysql
Have a csv of 500K+ lines, need a tool to ingest it to a mysql table in where one can specify X and Y, meaning for every insertion of X lines, sleep Y seconds.
CSV looks like
Name,Email
Philip Morris,pmorris@gmail.com
Jane Webster,jwebster@gmail.com
Mysql table looks like
+---------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
[
{
"constant": true,
"inputs": [],
"name": "round",
"outputs": [
{
"name": "",
"type": "uint256"
}
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}