Skip to content

Instantly share code, notes, and snippets.

View aomerk's full-sized avatar
🤓

Ali Keser aomerk

🤓
View GitHub Profile
@aomerk
aomerk / FreqHighest.sol
Created March 23, 2022 06:55
Number of occurences of highest value in solidity
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
function freqOfMaxNum(uint256[] memory arr)
public
pure
returns (uint256, uint256)
{
uint256 max = 0;
uint256 frequenceOfMax = 0;
@aomerk
aomerk / mirror-worker.js
Created November 28, 2021 09:45
Cloudflare Worker for mirroring incoming requests to external server
addEventListener("fetch", (event) => {
event.respondWith(
handleRequest(event.request).catch(
(err) => new Response(err.stack, {
status: 500
})
)
);
});

Keybase proof

I hereby claim:

  • I am aomerk on github.
  • I am aomerk (https://keybase.io/aomerk) on keybase.
  • I have a public key ASCVi-vUGg0vqfcu1zsdPnqCWnuYAyOhQjP73Kky510Pigo

To claim this, I am signing this object: