This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void mainImage( out vec4 fragColor, in vec2 fragCoord ) | |
{ | |
// Time varying pixel color | |
vec3 lightColor = vec3( | |
clamp(mod(float(iFrame + 50), 100.0) / 100.0, 0.0, 1.0), | |
clamp(mod(float(iFrame + 100), 100.0) / 100.0, 0.0, 1.0), | |
clamp(mod(float(iFrame), 100.0) / 100.0, 0.0, 1.0) | |
); | |
vec3 pixelColor = vec3(0.0, 1.0, 1.0); | |
vec2 toLight = vec2(iMouse.x - fragCoord.x, iMouse.y - fragCoord.y); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am attesting that this GitHub handle patrixr is linked to the Tezos account tz1WPQ824uvHhzp95sZVRnWPjfgBtLarDgVL for tzprofiles | |
sig:edsigtiRUPezs6RP74tssQbRFsg5E1VjsCxBV7TEEgpq53EESWPphbsx9fhiy9aLSGfGqJbarPQ2sHeKX3zsBwXiaMiVe2qwS3g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --------------------------- | |
// ~ Helpers | |
// --------------------------- | |
const capitalize = (s : string) => s.charAt(0).toUpperCase() + s.slice(1); | |
// --------------------------- | |
// ~ TYPES | |
// --------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { onMounted, ref } from 'vue' | |
type AsyncFunc = () => Promise<any> | |
type ReturnType<F extends AsyncFunc> = F extends () => Promise<infer R> ? R : any | |
type UseAsyncOptions = { | |
lazy?: boolean | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
goodchat: | |
image: goodregistry.azurecr.io/goodchat/goodchat:latest | |
ports: | |
- "8000:8000" | |
environment: | |
- PORT=8000 | |
- GOODCHAT_AUTH_URL=https://api-staging.goodcity.hk/api/v2/auth/goodchat | |
- DB_HOST=postgres_goodchat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// E2E Test Setup | |
// e2e_helpers.js | |
// | |
import { getMainDefinition } from '@apollo/client/utilities' | |
import { AuthPayload } from '../../lib/typings/goodchat' | |
import { WebSocketLink } from '@apollo/client/link/ws' | |
import { promisify } from 'util' | |
import fetch from 'cross-fetch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _, { LoDashStatic } from 'lodash' | |
type PredicateMethod = ( | |
"has" | | |
"isEqual" | | |
"isString" | | |
"isObject" | | |
"isArray" | | |
"isBoolean" | | |
"isMatch" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
// ------------------------- | |
// Typing | |
// ------------------------- | |
type Maybe<T> = T | null; | |
type AnyFunction = (...args: any[]) => any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
type Maybe<T> = T | null; | |
type AnyFunction = (...args: any[]) => any; | |
type Awaited<T> = T extends { then(onfulfilled: (value: infer U) => any): any } | |
? U | |
: T extends { then(...args: any[]): any } | |
? never |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _ from 'lodash' | |
interface LazyVarEntry<T = any> { | |
gen : () => T, | |
val? : T | |
} | |
interface LazyCache { | |
[key: string]: LazyVarEntry[] | |
} |
NewerOlder