Skip to content

Instantly share code, notes, and snippets.

View gwmccubbin's full-sized avatar
🤢
choking on candy

Gregory McCubbin gwmccubbin

🤢
choking on candy
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract HotelRoom {
enum Statuses {
Vacant,
Occupied
}
Statuses public currentStatus;
@gwmccubbin
gwmccubbin / SimpleMint.sol
Created October 22, 2025 15:44
Simple Mint
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts@5.0.2/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts@5.0.2/access/Ownable.sol";
// This contract is for educational demo purposes only. Do not put this on the mainnet.
contract SimpleMintNFT is ERC721URIStorage, Ownable {
uint256 private _nextId = 1;
bool public mintingEnabled = true;
{
// Theme & Icons
"workbench.colorTheme": "Monokai Classic",
"workbench.iconTheme": "Monokai Classic Monochrome Icons",
// Editor
"editor.lineHeight": 22,
"editor.cursorStyle": "block",
"editor.cursorBlinking": "phase",
"editor.glyphMargin": false,
:root {
--background: #050505;
--foreground: #FFFFFF;
--clr-black: #050505;
--clr-white: #FFFFFF;
--clr-gray: #686868;
--clr-orange: #FF9C1C;
--clr-green: #2FD070;
--clr-red: #D02F2F;
@gwmccubbin
gwmccubbin / Sublime Text 3 Command
Created April 21, 2022 13:17 — forked from vanderlin/Sublime Text 3 Command
Create a Sublime Text 3 symbolic link to open a file via command line. paste this into terminal and now you can run `subl .` to open the directory in sublime or `subl file.html`
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@gwmccubbin
gwmccubbin / Markets.js
Last active April 22, 2024 13:58
Markets.js
const Markets = () => {
return(
<div className='component exchange__markets'>
<div className='component__header'>
</div>
<hr />
</div>
)
const Balance = () => {
return (
<div className='component exchange__transfers'>
<div className='component__header flex-between'>
<h2>Balance</h2>
<div className='tabs'>
<button className='tab tab--active'>Deposit</button>
<button className='tab'>Withdraw</button>
</div>
const Navbar = () => {
return(
<div className='exchange__header grid'>
<div className='exchange__header--brand flex'>
</div>
<div className='exchange__header--networks flex'>
</div>
@gwmccubbin
gwmccubbin / package.json
Last active December 15, 2023 17:48
Bootcamp Package.json
{
"name": "bootcamp",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@testing-library/user-event": "^13.5.0",
"dotenv": "^16.0.0",
"lodash": "^4.17.21",
pragma solidity ^0.6.0;
contract HotelRoom {
enum Statuses { Vacant, Occupied }
Statuses currentStatus;
address payable public owner;
event Occupy(address _occupant, uint _value);