Skip to content

Instantly share code, notes, and snippets.

View LateButEarly's full-sized avatar
💭
Gas so high, I didn't get far.

LateButEarly LateButEarly

💭
Gas so high, I didn't get far.
View GitHub Profile
@LateButEarly
LateButEarly / contracts...artifacts...BoneWars.json
Created February 26, 2022 20:23
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.7+commit.e28d00a7.js&optimize=true&runs=1&gist=
// this line is added to create a gist. Empty file is not allowed.
@LateButEarly
LateButEarly / contracts...SecretMoneySocietyV2.sol
Created February 8, 2022 04:59
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.4+commit.c7e474f2.js&optimize=true&runs=1&gist=
// SPDX-License-Identifier: UNLICENSED
//
//
// .d8888b. 888 888b d888 .d8888b. d8b 888
// d88P Y88b 888 8888b d8888 d88P Y88b Y8P 888
// Y88b. 888 88888b.d88888 Y88b. 888
// "Y888b. .d88b. .d8888b 888d888 .d88b. 888888 888Y88888P888 .d88b. 88888b. .d88b. 888 888 "Y888b. .d88b. .d8888b 888 .d88b. 888888 888 888
// "Y88b. d8P Y8b d88P" 888P" d8P Y8b 888 888 Y888P 888 d88""88b 888 "88b d8P Y8b 888 888 "Y88b. d88""88b d88P" 888 d8P Y8b 888 888 888
// "888 88888888 888 888 88888888 888 888 Y8P 888 888 888 888 888 88888888 888 8
@LateButEarly
LateButEarly / contracts...artifacts...SecretMoneySociety.json
Created February 2, 2022 21: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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
@LateButEarly
LateButEarly / [email protected]
Created October 5, 2021 22:36
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
@LateButEarly
LateButEarly / README.txt
Created October 2, 2021 15:50
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@LateButEarly
LateButEarly / gist:ca4cab39a85359aea4972862daa95f38
Created June 25, 2018 17:58 — forked from sabarasaba/gist:3080590
Remove directory from remote repository after adding them to .gitignore
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@LateButEarly
LateButEarly / example.html
Created August 18, 2016 20:56
VWO executeTrackingCode() Example
<script type="text/javascript">
window._vis_opt_url = '#!/pricing';
executeTrackingCode();
</script>
@LateButEarly
LateButEarly / fs-my-addon.php
Created May 13, 2016 13:31 — forked from vovafeldman/fs-my-addon.php
Example of an add-on with Freemius that is activated only when the parent plugin is activated and loaded.
<?php
/*
Plugin Name: My Add-on
Version: 1.0.0
Author: Vova Feldman
Author URI: http://freemius.com
License: GPL2
*/
// Exit if accessed directly
@LateButEarly
LateButEarly / vwo_example.js
Created May 9, 2016 19:07
An AngularJS routing work around provided by VWO support.
var ele1_interval = setInterval(function(){
// VWO code here - for example:
// vwo_$("#price-monthly").html("14");
}, 100);
@LateButEarly
LateButEarly / functions.php
Last active January 7, 2016 14:44
Reposition the The Events Calendar gCal and iCal buttons before the content.
/**
* Reposition the The Events Calendar gcal and ical buttons before the content.
*
* https://wordpress.org/plugins/the-events-calendar/
*/
remove_action( 'tribe_events_single_event_after_the_content', array( 'Tribe__Events__iCal', 'single_event_links' ) );
add_action( 'tribe_events_single_event_before_the_content', 'theme_reposition_calendar_buttons' );
function theme_reposition_calendar_buttons() {
// don't show on password protected posts
if ( is_single() && post_password_required() ) {