Skip to content

Instantly share code, notes, and snippets.

View 0xOsiris's full-sized avatar
🌵

0xOsiris

🌵
View GitHub Profile
public class ListSet<T> implements Set<T>{
private int find(T e){
int i = 0;
while(elements.hasNext()){
if(elements.next()==null){
return -1;
}else{
if(e==elements.next(){
return elements.next()
}
@0xOsiris
0xOsiris / BundleExecutor.sol
Created March 6, 2022 09:27
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.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
@0xOsiris
0xOsiris / BundleExecutor.sol
Created March 10, 2022 00:58
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.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
### Keybase proof
I hereby claim:
* I am 0xosiris on github.
* I am 0xosiris (https://keybase.io/0xosiris) on keybase.
* I have a public key ASBrLVP8Id9YT6JSHDTlWfyYmlSSYTbpKlWboDMj3F1c8go
To claim this, I am signing this object:
@0xOsiris
0xOsiris / 🧽.gif
Created October 23, 2023 05:07 — forked from zmohling/🧽.gif
🧽.gif