Skip to content

Instantly share code, notes, and snippets.

let Hooks = {}
Hooks.ScrollableList = {
updated() {
this.el.querySelectorAll("li").forEach((option) => {
option.addEventListener("focus", e => {
e.target.scrollIntoView();
}
})
}
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { html as toReactNode } from 'satori-html';
import { Resvg } from '@resvg/resvg-js';
import DMSans from '$lib/fonts/DMSans-Bold.ttf';
import OpenGraph from '$lib/components/OpenGraph.svelte';
import satori from 'satori';
const height = 630;
<script>
let results = [];
$: console.log({ results });
</script>
{#if results.length > 0}
<Results {results} />
{:else}
<Search {results} />

Music sounds better with you

Of some content

Here we, here we, here we fucking go

/* eslint-disable prefer-const */
import { useEffect, useState } from 'react';
export default function useForm(initial = {}) {
// create a state object for our inputs
const [inputs, setInputs] = useState(initial);
const initialValues = Object.values(initial).join(' ');
useEffect(() => {
setInputs(initial);
<% content_for :head do %>
<script src="https://js.stripe.com/v3/"></script>
<script type="text/javascript">
const setupStripe = () => {
const stripe = Stripe('pk_test_3rCk8Ewa2UTc79iWJZDCeKmH00plww4RXx');
document
.getElementById("checkout")
.addEventListener('click', (event) => {
defmodule Politics.Seeder.Countries do
alias Politics.Governments
def populate do
url = "https://raw.githubusercontent.com/everypolitician/everypolitician-data/master/countries.json"
%{body: data} = url |> HTTPoison.get!
{:ok, json} = JSON.decode(data)
# I have an list of maps :
sentence_list = [
%{
keywords: ~w(cat),
sentence: "I'm a cat person",
},
%{
keywords: ~w(dog),
sentence: "I'm a dog person",
date=$(git log -1 --format=%cd)
heroku config:set LAST_COMMIT_DATE=$date --app yourappname