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 / understanding_gas.txt
Created February 16, 2018 16:24
🔥 Understanding Gas on Ethereum - How it works!
_____/\\\\\\\\\\\\_____/\\\\\\\\\________/\\\\\\\\\\\___
___/\\\//////////____/\\\\\\\\\\\\\____/\\\/////////\\\_
__/\\\______________/\\\/////////\\\__\//\\\______\///__
_\/\\\____/\\\\\\\_\/\\\_______\/\\\___\////\\\_________
_\/\\\___\/////\\\_\/\\\\\\\\\\\\\\\______\////\\\______
_\/\\\_______\/\\\_\/\\\/////////\\\_________\////\\\___
_\/\\\_______\/\\\_\/\\\_______\/\\\__/\\\______\//\\\__
_\//\\\\\\\\\\\\/__\/\\\_______\/\\\_\///\\\\\\\\\\\/___
__\////////////____\///________\///____\///////////_____
@gwmccubbin
gwmccubbin / quiknode_explorer.html
Last active April 3, 2018 16:26
Build a Blockchain Explorer with Quiknode.io | Ethereum dApp Tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>QuikNode Explorer</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Styles -->
➜ test-folder n
installed : v10.5.0 (with npm 6.1.0)
➜ test-folder create-react-app -V
3.3.1
➜ test-folder npm install --global create-react-app@3.3.1
npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
/usr/local/bin/create-react-app -> /usr/local/lib/node_modules/create-react-app/index.js
+ create-react-app@3.3.1
updated 7 packages in 3.571s
➜ test-folder create-react-app blockchain-developer-bootcamp
pragma solidity ^0.6.0;
contract MyContract {
uint[] public numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
address public owner;
constructor() public {
owner = msg.sender;
}
pragma solidity ^0.6.0;
contract MyContract {
// Arrays
uint[] public uintArray = [1,2,3];
string[] public stringArray = ['apple', 'banana', 'carrot'];
string[] public values;
uint[][] public array2D = [ [1,2,3], [4,5,6] ];
pragma solidity ^0.6.0;
contract MyContract {
// Arrays
uint[] public uintArray = [1,2,3];
string[] public stringArray = ['apple', 'banana', 'carrot'];
string[] public values;
uint[][] public array2D = [ [1,2,3], [4,5,6] ];
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract HotelRoom {
enum Statuses {
Vacant,
Occupied
}
Statuses public currentStatus;
const Order = () => {
return (
<div className="component exchange__orders">
<div className='component__header flex-between'>
<h2>New Order</h2>
<div className='tabs'>
<button className='tab tab--active'>Buy</button>
<button className='tab'>Sell</button>
</div>
export const options = {
chart: {
animations: { enabled: true },
toolbar: { show: false },
width: '100px'
},
tooltip: {
enabled: true,
theme: false,
style: {
const Banner = ({ text }) => {
return (
<div className='banner'>
<h1>{text}</h1>
</div>
);
}
export default Banner;