Skip to content

Instantly share code, notes, and snippets.

View ydm's full-sized avatar

Йордан Миладинов ydm

  • Sofia, Bulgaria
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Layout

| Tree                                            | Size | Index | Real |
|-------------------------------------------------+------+-------+------|
| StakedEthToken                                  |      |       |      |
| --- OwnablePausableUpgradeable                  |      |       |      |
| ------- PausableUpgradeable                     |      |       |      |
| ----------- Initializable                       |      |       |      |
| --------------- bool _initialized               | 1/32 |     0 |      |
import { ethers } from "hardhat";
import { Signer } from "ethers";
async function main() {
let admin: Signer = await ethers.getSigners().then(xs => xs[0]);
const message: Uint8Array = ethers.toUtf8Bytes("mindless");
const digest: Uint8Array = ethers.getBytes(ethers.keccak256(message));
const signature: string = await admin.signMessage(digest);
@ydm
ydm / curriculum.md
Last active September 21, 2023 11:53
from std/os import sleep
from std/times import epochTime
from strutils import format
type
Timer = object
point: float
elapsed: float
#include <stdio.h>
int find_index(char s[], char element)
{
int i;
for (i = 0; s[i] != '\0'; i++)
{
if (s[i] == element)
{
PyDoc_STRVAR_shared(_Py_title__doc__,
"B.title() -> copy of B\n\
\n\
Return a titlecased version of B, i.e. ASCII words start with uppercase\n\
characters, all remaining cased characters have lowercase.");
void
_Py_bytes_title(char *result, const char *s, Py_ssize_t len)
{
Py_ssize_t i;
import React, { useEffect, useState } from 'react';
interface Wallet {
accounts: Array<string>;
}
function App(): React.JSX.Element {
// Provider
const [
hasProvider,