Skip to content

Instantly share code, notes, and snippets.

View mdulin2's full-sized avatar

Maxwell "ꓘ" Dulin mdulin2

View GitHub Profile
@mdulin2
mdulin2 / .deps...npm...@0x...contracts-erc20...contracts...src...ERC20Token.sol
Created September 3, 2024 23:05
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.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@mdulin2
mdulin2 / .deps...npm...@0x...contracts-erc20...contracts...src...ERC20Token.sol
Created September 3, 2024 23: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.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@mdulin2
mdulin2 / ExampleQueryInMySqlJs.js
Created February 23, 2022 06:23
Using mysql js's 'query with parameteritized variables.
...
connection.query(
"SELECT * FROM accounts WHERE username = ? AND password = ?",
[username, password],
function (error, results, fields) {
...
});