Skip to content

Instantly share code, notes, and snippets.

View ali2210's full-sized avatar
🦀
building empire

Ali Hassan ali2210

🦀
building empire
View GitHub Profile
@ali2210
ali2210 / spike
Last active February 2, 2020 17:45
Spike-Informatica
package main
import (
"fmt"
"time"
"gorgonia.org/gorgonia"
)
// struct definition for stimulation
pragma solidity =0.4.25;
contract AcoraidaMonicaGame{
uint256 public version = 4;
string public description = "Acoraida Monica admires smart guys, she'd like to pay 10000ETH to the one who could answer her question. Would it be you?";
string public constant sampleQuestion = "Who is Acoraida Monica?";
string public constant sampleAnswer = "$*!&#^[` [email protected];Ta&*T` R`<`~5Z`^5V You beat me! :D";
Logger public constant logger=Logger(0x5e351bd4247f0526359fb22078ba725a192872f3);
address questioner;
string public question;
@ali2210
ali2210 / main.go
Created August 27, 2020 16:24
Transfer Money (Interface)
package main
import (
"fmt"
)
type Self bool
type Person struct{
name string
@ali2210
ali2210 / README.txt
Created April 30, 2021 10:49
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.1+commit.df193b15.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
// You can edit this code!
// Click here and start typing.
package main
import (
"fmt"
"reflect"
)
type Person struct {