Skip to content

Instantly share code, notes, and snippets.

View mattupham's full-sized avatar
🎯
Focusing

Matt Upham mattupham

🎯
Focusing
View GitHub Profile
@mattupham
mattupham / likes
Last active August 29, 2023 02:19
likes
async function postData(url = "", data = {}) {
// Default options are marked with *
const response = await fetch(url, {
method: "POST", // *GET, POST, PUT, DELETE, etc.
mode: "cors", // no-cors, *cors, same-origin
cache: "no-cache", // *default, no-cache, reload, force-cache, only-if-cached
credentials: "same-origin", // include, *same-origin, omit
headers: {
"Content-Type": "application/json",
// 'Content-Type': 'application/x-www-form-urlencoded',
@mattupham
mattupham / create_your_own_crypto_ethereum.sol
Created November 13, 2021 14:00
How to create YOUR own Cryptocurrency in 3 Minutes on Ethereum - Matt Upham
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MyCoin is ERC20 {
constructor() ERC20("MY TOKEN", "MYTOKEN") {
_mint(msg.sender, 1000000 * 10**18);
}
}
@mattupham
mattupham / @mattupham Omegle IP Location Finder
Last active January 26, 2024 19:01
@mattupham Omegle IP Location Finder - Ask Questions in our Discord, links below
// Subscribe on YouTube, and follow on TikTok (@mattupham)! Socials found below:
// https://mattupham.com/links
// @ me on Discord with any questions!
https://link.mattupham.com/discord
// --------------------------------------------
// PLEASE REPLACE "your-api-key-here" WITH AN
// API KEY FROM https://ipgeolocation.io/
let apiKey = "your-api-key-here";
@mattupham
mattupham / keybase.md
Created November 28, 2018 23:28
Keybase Proof

Keybase proof

I hereby claim:

  • I am mattupham on github.
  • I am mattupham (https://keybase.io/mattupham) on keybase.
  • I have a public key ASA8tH7BPZuJLZU4b_6JvS18FKHqmuonApSi_3DWZYqKSgo

To claim this, I am signing this object: