Skip to content

Instantly share code, notes, and snippets.

View ok1a's full-sized avatar
💭
https://omarokla.com

ok1a

💭
https://omarokla.com
View GitHub Profile
@ok1a
ok1a / Multicall.sol
Created March 22, 2022 06:30 — forked from 0xAlcibiades/Multicall.sol
A Pre EIP-1559 MEV/Multicall in pure Yul integrated with ApeBank and with Native GasTokens
// SPDX-License-Identifier: MIT
object "Multicall" {
code {
// Deploy the contract
// Store gas token burn cost in zero slot
sstore(0, 0)
sstore(1, 0)
sstore(2, 0)
datacopy(0x0, dataoffset("MulticallRuntime"), datasize("MulticallRuntime"))
@ok1a
ok1a / tz
Created August 25, 2021 20:16
tz
I am attesting that this GitHub handle ok1a is linked to the Tezos account tz1Sb4ZrJjJhXCpUWd544fPV4MMtEnsqNRhj for tzprofiles
sig:edsigtq5dYwtJ6W4rdWuhZmbk7fFwfkioueENKn9H7wKdnz87YCax85UsKMbnjcgZT5vWwbkWGwhm64CpcxP8di2Hnz5nTugz2b
// single chain solution
function findBadActor(poolMap) {
let successCount = 0;
let badActor = ''
let poolArr = []
for (let [key, value] of Object.entries(poolMap)) {
function findMinDistance(sentence, word1, word2) {
const sentenceArr = sentence.split(' ');
const wordDict = {};
wordDict[word1] = word2;
wordDict[word2] = word1;
let distanceArr = [];
let distanceCounter = 0;
let lastFoundKeyword = '';
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmTg9Dmnm2NBmpx3zNnjampzc8EqBcT1n2fgqC3AueZVda ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
Verifying my Blockstack ID is secured with the address 1FiEaGRSy9seyHeeh4tkdxbuVJUo6dhPjF https://explorer.blockstack.org/address/1FiEaGRSy9seyHeeh4tkdxbuVJUo6dhPjF

Keybase proof

I hereby claim:

  • I am ok1a on github.
  • I am okla (https://keybase.io/okla) on keybase.
  • I have a public key ASBdlnUlYoQv7_FZDidXuc1dcV-OULQqoTGpj2j5z5Yg5go

To claim this, I am signing this object:

@ok1a
ok1a / blockstack identity
Created September 1, 2019 03:59
blockstack identity
Verifying my Blockstack ID is secured with the address 18sq72J9LJ7ShrEpNMPGJt9Uc49uo4e1WR https://explorer.blockstack.org/address/18sq72J9LJ7ShrEpNMPGJt9Uc49uo4e1WR
Verifying my Blockstack ID is secured with the address 1B9qKU2NfTgsYpuvavRFDenT7dGGhvXS2V https://explorer.blockstack.org/address/1B9qKU2NfTgsYpuvavRFDenT7dGGhvXS2V