Skip to content

Instantly share code, notes, and snippets.

@streamerd
streamerd / Main.java
Created April 3, 2017 10:29
SocketCastify created by streamerd - https://repl.it/Grjk/3
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws InterruptedException, IOException {
File file = new File("nodeIpAddresses");
@streamerd
streamerd / error log
Created March 7, 2018 12:13
stack build throwing error for type: 'Money', No instance for (Eq Money)
/Users/streamerd/Developer/hs/haskellAtWork/projectz/Project.hs:28:21: error:
• No instance for (Eq Money)
arising from the first field of ‘Sale’ (type ‘Money’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Eq Transaction)
|
28 | deriving (Show, Eq)
| ^^
@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)
mutation{
registerUser (
input: {
username: "streamerd",
email: "abcd@e.fu",
password: "123456789-qwert-y0",
role: "user",
behaviours: ["audience", "artist", "volunteer"]
city: "Hamburg",
{
users{
city
country
behaviours
}
}
@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
@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 / 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 / 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 / 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: