Skip to content

Instantly share code, notes, and snippets.

View molecula451's full-sized avatar
๐ŸŒŒ
Working from home

Paul molecula451

๐ŸŒŒ
Working from home
View GitHub Profile
@molecula451
molecula451 / compiling_building_c_cpp_notes.md
Created December 22, 2025 07:50 — forked from gubatron/compiling_building_c_cpp_notes.md
Things to remember when compiling and linking C/C++ programs

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015;

Last update on December 14, 2023

Updated on February 27, 2023

Updated August 29, 2019.

@molecula451
molecula451 / voting.sol
Last active October 19, 2024 19: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.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Voting {
enum VoteOption { Yes, No, None }
struct Voter {
bool hasVoted;
VoteOption vote;
uint256 votedAtBlock;

0x1e43a077028edffbc4c4e4359bba4ffca3b6f20c776db1a4f92750118546508b