Skip to content

Instantly share code, notes, and snippets.

View jchudzynski's full-sized avatar

Janusz Chudzynski jchudzynski

View GitHub Profile
@jchudzynski
jchudzynski / map.html
Last active June 8, 2017 15:24
Script that displays various information related to summer internships
<script>
"use strict";
</script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://use.fontawesome.com/da66ce1fd6.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rsvp/3.5.0/rsvp.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.8.0/firebase.js"></script>
<script src="http://atcwebapp.argo.uwf.edu/summerinterns/web/scripts/fire_script.php"></script>
<script src="http://atcwebapp.argo.uwf.edu/summerinterns/web/scripts/si_script.php"></script>
@jchudzynski
jchudzynski / Faucet.sol
Created February 14, 2022 04:35
Faucet
// SPDX-License-Identifier: MIT
// Author: Janusz Chudzynski
pragma solidity >=0.4.22 <0.9.0;
contract Faucet {
mapping(address=>uint) lastTransfers;
uint maxAllowed = 10 ** 18 * 5000;
constructor() {
// SPDX-License-Identifier: MIT
// Author: Janusz Chudzynski
pragma solidity >=0.4.22 <0.9.0;
contract Faucet {
mapping(address=>uint) lastTransfers;
uint amountToWithdraw = 10 ** 18 * 0.01;
function requestTokens(address payable requestor) external {
<html>
<head>
<script
src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI="
crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script type="module">
import { ethers } from "https://cdn.ethers.io/lib/ethers-5.2.esm.min.js";