Skip to content

Instantly share code, notes, and snippets.

View JonathanPicques's full-sized avatar
🎲

Jonathan Picques JonathanPicques

🎲
View GitHub Profile
View users.json
[{"name":"Aaliyah","age":22,"console":"XBOX"},{"name":"Aaren","age":48,"console":"PS4"},{"name":"Abbey","age":17,"console":"PS4"},{"name":"Abbi ","age":69,"console":"PS4"},{"name":"Abbie","age":60,"console":"PS4"},{"name":"Abby","age":39,"console":"XBOX"},{"name":"Abegail","age":29,"console":"XBOX"},{"name":"Abigayle ","age":67,"console":"PS4"},{"name":"Acacia","age":31,"console":"PS4"},{"name":"Ada","age":67,"console":"PS4"},{"name":"Adamina","age":43,"console":"PS4"},{"name":"Addie ","age":61,"console":"PS4"},{"name":"Addison","age":33,"console":"XBOX"},{"name":"Addy","age":27,"console":"PS4"},{"name":"Addyson","age":66,"console":"PS4"},{"name":"Adelia ","age":59,"console":"PS4"},{"name":"Adeline","age":12,"console":"PS4"},{"name":"Adella","age":21,"console":"PS4"},{"name":"Adelle","age":67,"console":"XBOX"},{"name":"Adria ","age":39,"console":"PS4"},{"name":"Adriana","age":42,"console":"XBOX"},{"name":"Adrianna","age":56,"console":"PS4"},{"name":"Adrianne","age":35,"console":"PS4"},{"name":"Aela","age
@JonathanPicques
JonathanPicques / emotion.ts
Created August 21, 2023 09:39 — forked from ValeriaVG/emotion.ts
Fresh Emotion plugin
View emotion.ts
import { Plugin, PluginRenderScripts } from "$fresh/server.ts";
import createEmotionServer from '@emotion/server/create-instance'
import { cache } from '@emotion/css'
const { extractCritical } = createEmotionServer(cache)
const main = `data:application/javascript,import hydrate from "${new URL("./main.ts", import.meta.url).href
}";export default function(state) { hydrate(state); }`;
const emotion: Plugin = {