Skip to content

Instantly share code, notes, and snippets.

View gregcorby's full-sized avatar
🏄‍♂️

Greg Corby gregcorby

🏄‍♂️
View GitHub Profile
{
"start": {
"text": "Sup"
},
"step1": {
"text": "Step 1",
"button": "➡️ Next"
},
"step2": {
"text": "This step has a <a href='http://www.google.com'>link</a>!",
@gregcorby
gregcorby / welp.sol
Created January 30, 2022 05:01
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.0+commit.c7dfd78e.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* SAFEMATH LIBRARY
*/
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
@gregcorby
gregcorby / welp.sol
Created January 28, 2022 23:35
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.0+commit.c7dfd78e.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* SAFEMATH LIBRARY
*/
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
@gregcorby
gregcorby / dumpjay.sol
Created December 17, 2021 04:02
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.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// DUMPJAY brought to you by the JayScale team.
// Get rewarded in CHAD token with DUMPJAY. Oh the irony.
pragma solidity ^0.8.7;
@gregcorby
gregcorby / dumpjay.sol
Created December 15, 2021 01:24
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.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// DUMPJAY brought to you by the JayScale team.
// Get rewarded in CHAD token with DUMPJAY. Oh the irony.
pragma solidity ^0.8.0;
@gregcorby
gregcorby / media-query.css
Created October 28, 2019 09:58 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@gregcorby
gregcorby / build-a-store-locator-with-mapbox-js.markdown
Created July 25, 2019 08:00
Build a store locator with Mapbox.js
[
{
"title": "Residential Development",
"location": "Ankara, Turkey",
"image": "https://www.datocms-assets.com/12893/1561003185-residentialdevelopmenttk.jpg",
"description": "Ankara, Turkey is home to more than five million residents and serves as the county's capital. Residential housing in the northern section of the city is visible here.",
"geo": "39.987497, 32.850163",
},
{
"title": "Milan-Malpensa Airport (MXP)",
greg-mbp:abrasive-border-43369 greg$ node ./stackbit-pull.js
fetching data for project from https://api.stackbit.com/pull/5d043369fbc5bf0010702174
/Users/greg/Sites/abrasive-border-43369/stackbit-pull.js:30
throw new Error('Project not found');
^
Error: Project not found
at IncomingMessage.res.on (/Users/greg/Sites/abrasive-border-43369/stackbit-pull.js:30:19)
at IncomingMessage.emit (events.js:194:15)