Skip to content

Instantly share code, notes, and snippets.

@streamerd
streamerd / vite-wagmi-ethers.log
Last active August 31, 2023 21:16
Error log for vite-wagmi-ethers example @ tokenbound/sdk/examples
VITE v4.4.9 ready in 563 ms
➜ Local: http://127.0.0.1:5173/
➜ Network: use --host to expose
➜ press h to show help
12:15:24 AM [vite] Internal server error: Failed to resolve entry for package "@tokenbound/sdk". The package may have incorrect main/module/exports specified in its package.json.
Plugin: vite:import-analysis
File: ......./tba/sdk/examples/vite-wagmi-ethers/src/App.tsx
at packageEntryFailure (file://......./tba/sdk/node_modules/.pnpm/vite@4.4.9/node_modules/vite/dist/node/chunks/dep-df561101.js:28691:11)
at resolvePackageEntry (file://......./tba/sdk/node_modules/.pnpm/vite@4.4.9/node_modules/vite/dist/node/chunks/dep-df561101.js:28688:5)
define :uclu do
3.times do
sample :drum_bass_hard, amp: 4
sleep 0.5
end
end
define :doors do
sample :bass_voxy_c, amp: 0.5, attack: 4
@streamerd
streamerd / keybase.md
Created September 24, 2022 07:35
gist to verify keybase ~ this is a lovely method.

Keybase proof

I hereby claim:

  • I am streamerd on github.
  • I am streamerd (https://keybase.io/streamerd) on keybase.
  • I have a public key ASCCGr5COziEnT-yZ1HgPEatYXBgsoId7o9_GdDtt9Cj2go

To claim this, I am signing this object:

@streamerd
streamerd / gist:d586651568134ced5f678d1820c58306
Created August 8, 2022 07:04
blockchain network configs
import { ChainId } from '@sushiswap/core-sdk'
export const SUPPORTED_NETWORKS = {
[ChainId.ETHEREUM]: {
chainId: '0x1',
chainName: 'Ethereum',
nativeCurrency: {
name: 'Ethereum',
symbol: 'ETH',
decimals: 18,
@streamerd
streamerd / contracts...ExchangeCore.sol
Created March 5, 2022 22:54
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.4.23+commit.124ca40d.js&optimize=true&runs=200&gist=
/**
*Submitted for verification at Etherscan.io on 2018-06-12
*/
pragma solidity ^0.4.23;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
@streamerd
streamerd / README.txt
Created January 18, 2022 01:39
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.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@streamerd
streamerd / curationData.js
Last active January 1, 2022 05:24
artists @ bu1dl-store launch
// information regarding to artist addresses and tokens:
// https://showtime.io/afuturemodern
// they are respectively and residing on Foundation, Rarible and Opensea.
// digitalpurity=0x8F45a76B743C58F7CB55318E3e93C171DC4D37DC
// MarcyMane=0xadae5e259cd199d12a92d7a5bbfdec22bb9923a8
// MsMMMcG=0xc553394dec0eb10f584f874034bddef087636063
// nickblanco=0x65a8d782b90fe5384ff9508b10b26462e1b85707
// mighty33=0x8c62dd796e13ad389ad0bfda44bb231d317ef6c6
// Hvdson=0x376275c4f9e4fffd8a89a90852f253f8e3373f67
{
users{
city
country
behaviours
}
}
mutation{
registerUser (
input: {
username: "streamerd",
email: "abcd@e.fu",
password: "123456789-qwert-y0",
role: "user",
behaviours: ["audience", "artist", "volunteer"]
city: "Hamburg",
@streamerd
streamerd / Project.hs
Created March 7, 2018 12:16
source file: Project.hs
{- # LANGUAGE GeneralizedNewtypeDeriving #-}
module Project where
import Data.Text (Text)
newtype Money = Money
{ unMoney :: Double
} deriving (Show, Eq, Num)