Skip to content

Instantly share code, notes, and snippets.

View Etheonor's full-sized avatar
🏠
Working from home

Michael Breyton Etheonor

🏠
Working from home
View GitHub Profile
@Etheonor
Etheonor / Chirp silencer list example
Last active August 23, 2023 08:03
Test chirp list
crypto
as a developer
don't believe me
quote tweet this with
👇
🧵
here’s what you need to know
Wrong answers only
you're already behind
import Head from "next/head";
import Layout from "components/Layout";
import { createClient } from "@supabase/supabase-js";
import dynamic from "next/dynamic";
import { useEffect } from "react";
const AdminPage = ({ adminKey }) => {
const SupabaseGrid = dynamic(() => import("@supabase/grid"));
return (
import axios from "axios";
export default async function handler(req, res) {
if (req.method === "PUT") {
axios
.put(
"https://api.sendgrid.com/v3/marketing/contacts",
{
contacts: [{ email: `${req.body.mail}` }],
list_ids: [process.env.SENDGRID_MAILING_ID],
import axios from "axios";
import { toast } from "react-toastify";
import { useState } from "react";
const MailingList = () => {
const [mail, setMail] = useState(null);
const [loading, setLoading] = useState(false);
const subscribe = () => {
setLoading(true);