Skip to content

Instantly share code, notes, and snippets.

View laryhills's full-sized avatar

Lary Hills laryhills

View GitHub Profile
@laryhills
laryhills / password-input.svelte
Created April 28, 2024 12:35
shadcn-svelte ui custom password input
<script lang="ts">
import type { HTMLInputAttributes } from 'svelte/elements';
import type { InputEvents } from './index.js';
import { cn } from '$lib/utils.js';
import { EyeIcon, EyeOffIcon } from 'lucide-svelte';
import Button from '../button/button.svelte';
type $$Props = HTMLInputAttributes;
type $$Events = InputEvents;
@laryhills
laryhills / recover-deleted-branch.sh
Created May 29, 2023 20:13 — forked from umayr/recover-deleted-branch.sh
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@laryhills
laryhills / typescript-crash.ts
Created July 12, 2022 21:38 — forked from bradtraversy/typescript-crash.ts
Basic intro to TypeScript (From YouTube Crash Course)
// Basic Types
let id: number = 5
let company: string = 'Traversy Media'
let isPublished: boolean = true
let x: any = 'Hello'
let ids: number[] = [1, 2, 3, 4, 5]
let arr: any[] = [1, true, 'Hello']
// Tuple

GraphQL Queries & Mutations

These are the GraphQL queries and mutations for the YouTube course.

Get names of all clients

{
  clients {
    name
 }