Skip to content

Instantly share code, notes, and snippets.

View bll-bobbygill's full-sized avatar

Bobby Gill bll-bobbygill

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bll-bobbygill
bll-bobbygill / AutoTweeter.gs
Created August 2, 2023 19:12
Google Apps Script to Post Tweets to Twitter from Google Sheet
var TWITTER_API_KEY = '<Twitter OAuth 2.0 Client ID>';
var TWITTER_API_SECRET_KEY = '<Twitter OAuth 2.0 Client Secret>';
var TWITTER_BEARER_TOKEN ='<Access token returned in Postman>';
var TWITTER_REFRESH_TOKEN = '<Refresh token returned in Postman>';
var TWITTER_EXPIRES_AT= new Date('<Expiry date based on the expires_in returned from Postman>');
function generateTweet()
{
@bll-bobbygill
bll-bobbygill / Crowdsale.sol
Created February 4, 2022 13:16
Versions of MintedCrowdsale.sol and Crowdsale.sol that Work with OpenZeppelin 4.0
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**