Skip to content

Instantly share code, notes, and snippets.

View IonianPlayboy's full-sized avatar
🏳️‍⚧️

Nathanaël Labreuil IonianPlayboy

🏳️‍⚧️
View GitHub Profile
@IonianPlayboy
IonianPlayboy / Elk.ts
Last active November 24, 2024 11:07
grep output in the Nimbus repo
./composables/idb/index.ts:3:import { del, get, set, update } from '~/utils/elk-idb'
./composables/about.ts:47: sponsors: 'elk-zone', // sponsors/userquin isn't enabled
./composables/about.ts:54: sponsors: 'elk-zone', // sponsors/shuuji3 isn't enabled
./composables/users.ts:318: // for example: elk@m.webtoo.ls instead of elk@webtoo.ls
./plugins/page-lifecycle.client.ts:3:import { closeDatabases } from '~/utils/elk-idb'
./tests/unit/permalinks.test.ts:5: 'https://m1as-social34.to.social/@elk',
./tests/unit/permalinks.test.ts:8: 'webtoo.ls/@elk',
./tests/unit/permalinks.test.ts:13: 'https://webtoo.ls/elk/123',
./tests/nuxt/content-rich.test.ts:4:// https://github.com/elk-zone/elk/pull/2984
./tests/nuxt/content-rich.test.ts:84: const { formatted } = await render('<p><span class="h-card"><a href="https://m.webtoo.ls/@elk" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>elk</span></a></span> <span class="h-card"><a href="https://m.webtoo.ls/@elk" class="u-url ment
{
"Brand": {
"$collection": { "$modes": ["Ben", "Odido"] },
"Button": {
"Border": {
"Emphasised": {
"Default": {
"$type": "border",
"$value": {
"Ben": { "$alias": "Semantic/Ben.Border.Action.Default", "$mode": "default" },
@IonianPlayboy
IonianPlayboy / broken-bis.json
Last active November 22, 2023 14:05
broken sdtf
{
"Aprimitive": {
"$description": "`primitive` is a group used for semantic grouping.",
"spacing": {
"1": {
"$type": "dimension",
"$description": "`primitive.spacing.1` is a dimension token without modes.",
"$value": {
"default": {
"value": 4
@IonianPlayboy
IonianPlayboy / sdtf-playground-example.json
Created November 22, 2023 13:22
sdtf-playground-example.json
{
"primitive": {
"$description": "`primitive` is a group used for semantic grouping.",
"spacing": {
"1": {
"$type": "dimension",
"$description": "`primitive.spacing.1` is a dimension token without modes.",
"$value": {
"default": {
"value": 4,
{
"record": {
"multiples": {
"$collection": { "$modes": ["light", "dark"] },
"radii": {
"simple-radii": {
"$type": "radii",
"$value": {
"light": [{ "value": 8, "unit": "px" }],
"dark": [{ "value": 11, "unit": "px" }]
{
"object": "error",
"code": "not_found",
"type": "ambiguous",
"status": 404,
"details": "Too many cards match ambiguous name “nic bol”. Add more words to refine your search."
}
@IonianPlayboy
IonianPlayboy / challenge.ts
Created September 20, 2021 07:46
Typescript Quest
interface User {
name: string;
age: number;
birthday?: string;
}
const prettyPrintWilder = (users: Array<User>): void => {
users.map((user) => {