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
| // ******************* | |
| // This setup will allow you to synchronize personal events from one calendar (the "secondary calendar") | |
| // to another calendar, e.g. work (the "primary calendar"), but obfuscate the details. Then your coworkers | |
| // know when you're busy but don't get to see the personal details. | |
| // | |
| // Follow these steps: | |
| // 1. Go to https://script.google.com/home and click [+ New project] | |
| // 2. Make sure the two calendars you want to sync can be edited by the Google account you're currently under | |
| // (or switch accounts) | |
| // 3. Click the title and give it a name like "Calendar sync" |
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.19; | |
| import { Script } from "forge-std/Script.sol"; | |
| abstract contract BaseScript is Script { | |
| /// @dev Included to enable compilation of the script without a $MNEMONIC environment variable. | |
| string internal constant TEST_MNEMONIC = "test test test test test test test test test test test junk"; | |
| /// @dev Needed for the deterministic deployments. |
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.16; // (10M optimization runs) | |
| interface MonacoInterface { | |
| struct CarData { | |
| uint32 balance; // Where 0 means the car has no money. | |
| uint32 speed; // Where 0 means the car isn't moving. | |
| uint32 y; // Where 0 means the car hasn't moved. | |
| Car car; | |
| } |
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: GPL-3.0-or-later | |
| pragma solidity >=0.8.4; | |
| /// @notice Simple gas-optimized multi-signature contract. | |
| contract Multisig { | |
| event Propose(address indexed proposer, uint256 indexed proposal); | |
| event Sign(address indexed signer, uint256 indexed proposal); | |
| event Execute(uint256 indexed proposal); | |
| error NotSigner(); |
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: GPL-3.0-or-later | |
| pragma solidity 0.6.12; | |
| /* | |
| ███ ███ ██████ ██████ ██ ██ ██ | |
| ████ ████ ██ ██ ██ ██ ██ ██ | |
| ██ ████ ██ ██ ██ ██ ███████ ██ | |
| ██ ██ ██ ██ ██ ██ ██ ██ ██ | |
| ██ ██ ██████ ██████ ██ ██ ██ |