Skip to content

Instantly share code, notes, and snippets.

View fakenickels's full-sized avatar
💭
hello this is a mic test, are you listening

Gabriel Rubens Abreu fakenickels

💭
hello this is a mic test, are you listening
View GitHub Profile
// 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);
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)
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
@fakenickels
fakenickels / ask for monies.js
Last active May 10, 2021 15:27
Et ririum quick snippets I took from https://fees.wtf/
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')
@fakenickels
fakenickels / .tmux.conf
Last active April 30, 2021 23:11
setup system
# 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}"
name: deploy
on:
push:
branches: [ master ]
tags: [ v* ]
jobs:
deploy:
runs-on: macos-latest
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([
@fakenickels
fakenickels / hkt.re
Created September 1, 2020 12:45
HKT Reason playground
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 = {
[@graphql.deriving]
type user = {
[@graphql.description "Nome do usuário"]
name: int,
age: string
}
[@reform]
type profile = {
[@check nonEmpty]
name: string,
[@check int(~max=40, ~min=12)]
age: int
};
ProfileForm.use()