This file contains hidden or 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.3; | |
contract FakeWormProfitSplitter { | |
address payable public fake = payable(0xE592783bF90e5C875dfaF4582575cFc864b5fB6c); | |
address payable public worms = payable(0x5b87102358a61BC9a6D32b20B121bbfd2A535C8d); | |
receive() external payable { | |
fake.transfer(msg.value / 2); |
This file contains hidden or 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
contract Kittens { | |
function claim() public payable {} | |
function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) public {} | |
function totalSupply() public uint256 {} | |
} | |
// aaaaaa I’m acoooomulating | |
contract Acoomulator { | |
Kittens kittens = Kittens(0xfD211f3B016a75bC8d73550aC5AdC2f1cAE780C0) |
This file contains hidden or 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
class Erlang < Formula | |
desc "Programming language for highly scalable real-time systems" | |
homepage "https://www.erlang.org/" | |
# Download tarball from GitHub; it is served faster than the official tarball. | |
url "https://github.com/erlang/otp/archive/OTP-23.3.4.tar.gz" | |
sha256 "adc937319227774d53f941f25fa31990f5f89a530f6cb5511d5ea609f9f18ebe" | |
license "Apache-2.0" | |
head "https://github.com/erlang/otp.git" | |
livecheck do |
This file contains hidden or 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
async function tip(amount) { | |
if(window.hasOwnProperty("ethereum") && window.ethereum.hasOwnProperty("isMetaMask")) { | |
const provider = new ethers.providers.Web3Provider(window.ethereum); | |
const signer = provider.getSigner(); | |
const tx = signer.sendTransaction({ | |
to: await provider.resolveName('feeswtf.eth'), | |
value: ethers.utils.parseEther(amount) | |
}) | |
} else { | |
return alert('Install MetaMask to use this cool feature. https://metamask.io') |
This file contains hidden or 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
# Minimal tmux conf | |
unbind C-b | |
set -g prefix C-s | |
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
set-option -g default-terminal "screen-256color" | |
# Use "|" for aside pane opening and _ for below pane opening | |
bind | split-window -h -c "#{pane_current_path}" | |
bind _ split-window -c "#{pane_current_path}" |
This file contains hidden or 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
name: deploy | |
on: | |
push: | |
branches: [ master ] | |
tags: [ v* ] | |
jobs: | |
deploy: | |
runs-on: macos-latest |
This file contains hidden or 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
const A = require('arcsecond') | |
const tlv = A.recursiveParser(() => A.coroutine(function* () { | |
const id = yield A.sequenceOf([ | |
A.digit, | |
A.digit, | |
]).map(v => v.join('')); | |
if(id == '80') { | |
const length = yield A.sequenceOf([ |
This file contains hidden or 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
type app('p, 'f); | |
module type Newtype1 = { | |
type s('a); | |
type t; | |
let bind: ('a => 'b, s('a)) => s('b); | |
external inj: s('a) => app('a, t) = "%identity"; | |
external prj: app('a, t) => s('a) = "%identity"; | |
}; | |
module Common = { |
This file contains hidden or 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
[@graphql.deriving] | |
type user = { | |
[@graphql.description "Nome do usuário"] | |
name: int, | |
age: string | |
} |
This file contains hidden or 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
[@reform] | |
type profile = { | |
[@check nonEmpty] | |
name: string, | |
[@check int(~max=40, ~min=12)] | |
age: int | |
}; | |
ProfileForm.use() |