Skip to content

Instantly share code, notes, and snippets.

View Abuchtela's full-sized avatar

amber buchtela Abuchtela

View GitHub Profile

Coin Flip Donate Button

A simple idea that ended up being really hard to pull off. No 3D elements or transformations are used in this experiment, only 2D elements and some clever math to give the illusion of a 3D coin with real thickness. I'm happy with the results given the limitations of HTML and CSS.

The coin flipping is actually randomized too -- if you press the button a few times you'll see.

A Pen by Abuchtela on CodePen.

License.

@Abuchtela
Abuchtela / artifacts...C.json
Created November 2, 2023 15:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {
"contract-800efd0394.sol": {
"Set": "<address>"
}
},
"autoDeployLib": true
},
@Abuchtela
Abuchtela / contracts...MyToken.sol
Created October 30, 2023 20:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
contract MyToken is ERC20, ERC20Permit {
constructor() ERC20("MyToken", "MTK") ERC20Permit("MyToken") {}
}
@Abuchtela
Abuchtela / .prettierrc.json
Created October 30, 2023 20:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=true&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
@Abuchtela
Abuchtela / .git...index
Created October 30, 2023 20:29
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=true&runs=200&gist=
DIRC e@%1|e@%1|���ƴ��i�/��֚i�Hk��y�$.deps/remix-tests/remix_accounts.sole@�P�e@�P��������b 2�H"��(���,�Dz!.deps/remix-tests/remix_tests.sole@')@e@')@������o#q{K���Sc��X�W�n.prettierrc.jsone@
_�e@
_����+��NF���
��
n[.P��contracts/MyToken.sole@��e@������cS?���5?,���7��'�|scripts/deploy_with_ethers.tse@���e@����������.��E�r���NH-��Wscripts/deploy_with_web3.tse@ܧ@e@ܧ@����'S��Н��M�%5�s<��wscripts/ethers-lib.tse@#g��e@#g�����%�~P9���WrV���ߒ�~�scripts/web3-lib.tse@1ZGe@1ZG������暯��T�Y<����=�tests/MyToken_test.sol���)6,6�����&/�P
@Abuchtela
Abuchtela / .git...HEAD
Created October 30, 2023 20:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=true&runs=200&gist=
ref: refs/heads/main
@Abuchtela
Abuchtela / .git...config
Created October 30, 2023 20:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=true&runs=200&gist=
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
@Abuchtela
Abuchtela / index.html
Last active February 2, 2023 07:50
wvpvmGq
npx create-react-app my-app -
cd my-app
npm start
@Abuchtela
Abuchtela / byebug_commands.md
Created July 4, 2021 11:59 — forked from jhang-jhe-wei/byebug_commands.md
Byebug Cheatsheet - organized by related commands

Byebug Cheatsheet

This cheatsheet includes most of the byebug commands organized by related commands (e.g. breakpoint related commands are together).

To see official help...

Command Aliases Example Comments
help h h list top level of all commands
help cmd h cmd-alias h n list the details of the next command (this works for all commands)