This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if !DEBUG && (defined(__arm64__) || defined(__aarch64__)) | |
void __attribute__((constructor)) security_setup(void) { | |
long PTRACE_SYSCALL = 26; | |
long PT_DENY_ATTACH = 31; | |
asm volatile( | |
"mov x0, %1\n" | |
"mov x1, #0\n" | |
"mov x2, #0\n" | |
"mov x3, #0\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client' | |
import useMeasure from 'react-use-measure' | |
import { ChangeEvent, FC, FormEvent, InputHTMLAttributes, useCallback, useState } from 'react' | |
enum Status { Idle, Error, Loading, Animate, Success } | |
const EmailInput = ({ onSubmit, ...props }) => { | |
const [formRef, dimensions] = useMeasure() | |
const [value, setValue] = useState<string>('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey, I'm m1guelpf-23558090 and I have contributed to the Semaphore V4 Ceremony. | |
The following are my contribution signatures: | |
Circuit # 1 (semaphorev4-1) | |
Contributor # 96 | |
Contribution Hash: bcd2a1d8 f5375fe8 a76fd474 f6a328ff | |
41c23ac8 4478fbc6 8b660da8 61a62c34 | |
25c1b73f d904d50d b0bc5065 d1d1fc54 | |
8e084d67 981dc462 42a981b8 ebc86eb5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
extension Color { | |
static var background: Color { | |
return Color(uiColor: .systemBackground) | |
} | |
static var secondaryBackground: Color { | |
return Color(uiColor: .secondarySystemBackground) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis from '@/lib/redis' | |
import { tap } from '@/lib/utils' | |
import { NextResponse } from 'next/server' | |
import { NowPlaying } from '@/types/activities' | |
import { base64_encode, use } from '@/lib/utils' | |
type SpotifyResponse = { | |
is_playing: boolean | |
progress_ms: number | |
item: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
import { execSync } from 'child_process' | |
const args = process.argv.slice(2); | |
if (args.length !== 1) { | |
throw new Error(`Invalid argument count ${args.length} expected 1`); | |
} | |
const word = args[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.13; | |
import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol"; | |
/// @title Merge Reward | |
/// @author Miguel Piedrafita | |
/// @notice A contract that rewards its first caller after the Merge | |
contract MergeReward { | |
/// @notice Thrown when attempting to claim the reward while in POW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony. | |
The following are my contribution signatures: | |
Circuit: semaphore16 | |
Contributor # 193 | |
Hash: 2b0a1a94 661f7cbd 8ab00877 f3676570 | |
82d881d9 86990c5e 159ff5d7 1284945e | |
cb3b7f30 3aceb733 80e6daed 3586257e | |
0012aaed 8918a3c4 cff31024 5744722e | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
did:3:kjzl6cwe1jw148wahhdvncozedy5coxmqwso9aq23tb7xx9kxd31u9f1lesek3l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ethers } from 'ethers' | |
import { ChainId } from '@/types/utils' | |
import { namehash } from 'ethers/lib/utils' | |
import { multicallAddresses, ZERO_ADDRESS } from '../consts' | |
import { Multicall as MulticallInterface, Multicall__factory } from '@/contracts' | |
export type Call = { | |
contract: { | |
address: string | |
} |
NewerOlder