Skip to content

Instantly share code, notes, and snippets.

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

Fabio Giolito fabiogiolito

🏠
Working from home
View GitHub Profile
//
// InstaStories.swift
// SwiftUITests
//
// Created by Fabio Giolito on 23/06/2019.
// Copyright © 2019 Fabio Giolito. All rights reserved.
//
import Combine
import SwiftUI
@fabiogiolito
fabiogiolito / mix.css
Created July 18, 2019 11:57
CSS override for Mix.com
.CardGrid {
width: 1280px !important;
height: auto !important;
margin: 0 auto;
display: grid !important;
grid-gap: 40px;
grid-template-columns: repeat(4, 290px);
grid-template-rows: auto;
align-items: stretch !important;
}
did:3:kjzl6cwe1jw146xqv0dh4zllis0314a7st0mbx1dd910m3dlgkisxie5vtfpknd
<script>
import { fly } from "svelte/transition";
import { teleport } from "$lib/teleport";
export let isOpen = false;
// Usage
// <Dropdown up right>
// <button slot="trigger">Toggle</button>
// <div slot="menu">Content</div>
@fabiogiolito
fabiogiolito / Typewriter.svelte
Created February 23, 2023 14:25
A Svelte component that types text like ChatGPT.
<script>
import { onMount } from "svelte";
// Text to display
export let text = "";
// <Typerwiter paused … /> to start paused
export let paused = false;
// <Typerwiter cursor … /> to show blinking cursor