Skip to content

Instantly share code, notes, and snippets.

@kazax-inc
kazax-inc / 01_deployContracts.js
Created June 24, 2023 00:12 — forked from BlockmanCodes/01_deployContracts.js
Uniswap V3 Flashloans and Arbitrage
const { Contract, ContractFactory, utils, BigNumber } = require("ethers")
const WETH9 = require("../WETH9.json")
const artifacts = {
UniswapV3Factory: require("@uniswap/v3-core/artifacts/contracts/UniswapV3Factory.sol/UniswapV3Factory.json"),
SwapRouter: require("@uniswap/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json"),
NFTDescriptor: require("@uniswap/v3-periphery/artifacts/contracts/libraries/NFTDescriptor.sol/NFTDescriptor.json"),
NonfungibleTokenPositionDescriptor: require("@uniswap/v3-periphery/artifacts/contracts/NonfungibleTokenPositionDescriptor.sol/NonfungibleTokenPositionDescriptor.json"),
NonfungiblePositionManager: require("@uniswap/v3-periphery/artifacts/contracts/NonfungiblePositionManager.sol/NonfungiblePositionManager.json"),
WETH9,
@kazax-inc
kazax-inc / black-hole-swallowing-a-galaxy.markdown
Created September 7, 2021 23:22
Black Hole swallowing a Galaxy

Black Hole swallowing a Galaxy

Black hole located at the mouse cursor position swallows the whole galaxy at which point it explodes and the process starts again.

A Pen by HowToSolutions on CodePen.

License.

@kazax-inc
kazax-inc / index.html
Created September 5, 2021 12:15
Orbit
<div id="blackhole">
<div class="centerHover"><span>ENTER</span></div>
</div>
@kazax-inc
kazax-inc / burger-depth.markdown
Created September 5, 2021 11:13
Burger depth 🍔
@kazax-inc
kazax-inc / index.html
Created September 5, 2021 11:09
RetroFighter Gunship
<section class="player" id="player">
<div class="fa fa-music"></div>
<div class="content">
Music Player <br />
Station: Underground 80s <br />
<button>Play music</button>
</div>
</section>
@kazax-inc
kazax-inc / index.pug
Created September 1, 2021 00:41
Triangle Storm ▲ Generative Art
#main
- for (var x = 0; x < 800; x++)
svg(viewBox="0 0 10 10")
polygon(class="▲" fill="rgba(255,255,255,0)" points="5 0, 10 10, 0 10")
@kazax-inc
kazax-inc / asiimov-pattern-generator-1.markdown
Created August 31, 2021 08:17
Asiimov Pattern generator 1
@kazax-inc
kazax-inc / index.html
Created August 31, 2021 08:16
Pixelpillow Pattern Generator
<!-- SOURCE SVG CONTAINER -->
<div id="sourceSVGcontainer">
<!-- Shape Plus -->
<svg width="20px" height="20px" viewBox="0 0 20 20" id="shapePlus" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<polygon fill="#F57176" fill-rule="nonzero" points="11 3.6739404e-16 11 9 20 9 20 11 10.999 11 11 20 9 20 8.999 11 0 11 0 9 9 9 9 0"></polygon>
</svg>
<!-- Shape SolidCircle -->
<svg width="20px" height="20px" viewBox="0 0 20 20" id="shapeSolidCircle" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">