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
@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>
)
@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
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);
pragma solidity ^0.6.0;
contract Ownable {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
➜ code mkdir my_test_project
➜ code cd my_test_project
➜ my_test_project npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See npm help init for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg> afterwards to install a package and
@gwmccubbin
gwmccubbin / App.css
Created May 2, 2022 20:56 — forked from GlitchicaL/App.css
Bootcamp CSS
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');
:root {
--clr-primary: #0D121D;
--clr-secondary: #121A29;
--clr-neutral: #767F92;
--clr-white: #F1F2F9;
--clr-blue: #2187D0;
--clr-red: #F45353;
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.