Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am youngkidwarrior on github.
  • I am youngkidwarrior (https://keybase.io/youngkidwarrior) on keybase.
  • I have a public key ASBuIr4EBktAIL9iY_J6HpoTMW_BYWVApFV2SSEonY4y8wo

To claim this, I am signing this object:

{"746109423738683454":{"role":"Verified","name":"YoungKidWarrior's server","inviteLink":"https://discord.gg/xGKYyqFk","roleId":"979112056768839720"},"696853831476314204":{"role":"Particles","name":"Shenanigan🤸","inviteLink":"","roleId":"759132992336953344"},"804572119249059850":{"role":"Verified","name":"edgeofinnerspace"},"698287700834517064":{"role":"Bee 🐝","name":"1Hive 🍯","inviteLink":"https://discord.gg/SwD5p","roleId":"759191073943191613"},"721099581017948291":{"role":"Verified","name":"conector's server","roleId":"761961112563613696"},"553741558869131266":{"role":"Verified","name":"Pocket Network"},"675563742838390804":{"role":"Verified","name":"Madison Blockchain","roleId":"764295302110117900"},"636043769208242178":{"role":"Verified","name":"果子狸","roleId":"791708898708684801"},"740450057136111667":{"role":"Verified","name":"WhalerDAO","roleId":"761751397553012767"},"765586342351470593":{"role":"Verified","name":"SirBumpy's server"},"785687040430702612":{"role":"Verified","name":"wayway3's server"},"76
@youngkidwarrior
youngkidwarrior / Types.res
Last active March 25, 2022 01:16
Wrapping abstract types into Variants
open Discord_Snowflake
// Client
type clientT
type client = Client(clientT)
//Role
type roleT
type roleName = RoleName(string)
type reason = Reason(string)
did:3:kjzl6cwe1jw148jow51waoe2ha8pvbpx1yjrodga9407y0v8bn3xw6sabx08kvl
@youngkidwarrior
youngkidwarrior / ChallengeFacet.sol
Last active June 7, 2021 13:17
Challenge Diamond
pragma solidity ^0.8.0;
ChallengeStorage internal cs;
contract ChallengeFacet {
function _createChallenge() {
*/ .... */
ChallengeFactory factory = ChallengeFactory(cs.factory);
(, bool hasActiveChallenge) = factory.getCurrentChallengeInfo();
require(
@youngkidwarrior
youngkidwarrior / starboard.json
Last active July 28, 2021 00:52
Remove shitposts
["869744051304402945","869743236518924330","869743073419210772","869740385893752842"]
@youngkidwarrior
youngkidwarrior / guildData.json
Last active April 29, 2024 14:36
Remove entry with id : 1082390075335258192
{"696853831476314204":{"role":"Particles","name":"Shenanigan🤸","inviteLink":"https://she.energy/join","roleId":"759132992336953344","premiumSponsorshipsUsed":"1"},"804572119249059850":{"role":"Verified","name":"edgeofinnerspace","roleId":"804572633022464011"},"698287700834517064":{"role":"Bee 🐝","name":"1Hive 🍯","inviteLink":"https://discord.gg/SwD5p","roleId":"759191073943191613","premiumSponsorshipsUsed":"1"},"721099581017948291":{"role":"Verified","name":"conector's server","roleId":"761961112563613696"},"675563742838390804":{"role":"Verified","name":"Madison Blockchain","roleId":"764295302110117900"},"636043769208242178":{"role":"Verified","name":"果子狸","roleId":"791708898708684801"},"740450057136111667":{"role":"Verified","name":"WhalerDAO","roleId":"761751397553012767"},"785687040430702612":{"role":"Verified","name":"wayway3's server","roleId":"785687939719757835"},"760274477782532126":{"role":"Verified","name":"rnoeld's server","roleId":"760277809121198120"},"765942422647472181":{"role":"Verified","name
@youngkidwarrior
youngkidwarrior / setupSubscription.ts
Created January 26, 2021 23:49
Async setup subscription
import { SUBSCRIPTION_URL } from 'react-native-dotenv';
import { Observable, SubscribeFunction } from 'relay-runtime';
import { SubscriptionClient } from 'subscriptions-transport-ws';
import AsyncStorage from '@react-native-community/async-storage';
const getToken = async () => {
return new Promise((resolve, reject) => {
AsyncStorage.getItem("token")
.then(res => {
if (res !== null) {
import { GraphQLID, GraphQLNonNull, GraphQLString } from 'graphql';
import { connectionArgs, ConnectionArguments, fromGlobalId } from 'graphql-relay';
import { GraphQLContext } from '../../../TypeDefinition';
import * as ChallengeLoader from '../ChallengeLoader';
import { ChallengeModel } from '../ChallengeModel';
import { ChallengeConnection, ChallengeType } from '../ChallengeType';
export const ChallengeQueries = {