Skip to content

Instantly share code, notes, and snippets.

View blueneogeo's full-sized avatar

Christian Vogel blueneogeo

View GitHub Profile
We couldn’t find that file to show.
@blueneogeo
blueneogeo / designer.html
Created February 25, 2015 13:04
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
import { deferred } from "https://deno.land/std@0.168.0/async/deferred.ts";
import { assertEquals } from "https://deno.land/std@0.192.0/testing/asserts.ts";
import { createClient } from "https://esm.sh/v129/@supabase/supabase-js@2.23.0/denonext/supabase-js.mjs";
import env from "../_shared/test-env.ts";
async function testChannelComms() {
const anonClient = createClient(env.SUPABASE_URL, env.SUPABASE_ANON_KEY)
const channel = anonClient.channel('test-channel')
const done = deferred<void>()
@blueneogeo
blueneogeo / client.ts
Created August 8, 2023 20:24
Failing token streaming code
import { createClient as createSupabaseClient } from 'supabase-js'
import { Database } from '../_shared/supabase.ts'
import env from './env.ts'
/**
* Create a Supabase anon client that uses the Authorization header from the request
* to authenticate with Supabase.
*/
export function createAuthorizedClient(request: Request) {
return createSupabaseClient<Database>(