{
"compilerOptions": {
"baseUrl": "./src",
"target": "ES6",
"jsx": "preserve",
"allowSyntheticDefaultImports": true
},
"exclude": ["build", "node_modules"]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config() | |
const fetch = require('isomorphic-fetch') | |
const { providers, BigNumber, Wallet } = require('ethers') | |
const { formatUnits, parseUnits } = require('ethers/lib/utils') | |
const priv = process.env.PRIVATE_KEY | |
const rpcUrls = { | |
ethereum: 'https://mainnet.infura.io', | |
polygon: 'https://polygon.infura.io', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// put this on gatsby-node.js file | |
exports.onCreateWebpackConfig = ({ | |
stage, | |
rules, | |
loaders, | |
plugins, | |
actions, | |
}) => { | |
actions.setWebpackConfig({ | |
resolve: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This script uses the Twitter Streaming API, via the tweepy library, | |
to pull in tweets and publish them to a PubSub topic. | |
""" | |
import base64 | |
import datetime | |
import utils | |
from tweepy import OAuthHandler | |
from tweepy import Stream | |
from tweepy.streaming import StreamListener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! model | |
pc101 Generic 101-key PC | |
pc102 Generic 102-key (Intl) PC | |
pc104 Generic 104-key PC | |
pc105 Generic 105-key (Intl) PC | |
dell101 Dell 101-key PC | |
latitude Dell Latitude series laptop | |
dellm65 Dell Precision M65 | |
everex Everex STEPnote | |
flexpro Keytronic FlexPro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Disable REST Api without Plugins | |
https://rudrastyh.com/wordpress/disable-rest-api.html | |
Add featured image & alt text to WP REST API | |
https://allisontarr.com/2021/10/13/add-featured-image-alt-text-to-wp-rest-api/ | |
Allow ALL cross origin requests to WordPress REST API | |
https://github.com/Shelob9/rest-all-cors | |
WordPress theme using Rest API and Vue.js |
Alias | Command |
---|---|
g | git |
ga | git add |
gaa | git add --all |
gapa | git add --patch |
gb | git branch |