Skip to content

Instantly share code, notes, and snippets.

View perseuvoleu's full-sized avatar
🎯
Focusing

Perseu perseuvoleu

🎯
Focusing
View GitHub Profile
@mjbalcueva
mjbalcueva / calendar.tsx
Last active July 28, 2024 08:44
shadcn ui calendar custom year and month dropdown
"use client"
import * as React from "react"
import { buttonVariants } from "@/components/ui/button"
import { ScrollArea } from "@/components/ui/scroll-area"
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
import { cn } from "@/lib/utils"
import { ChevronLeft, ChevronRight } from "lucide-react"
import { DayPicker, DropdownProps } from "react-day-picker"
@plastic041
plastic041 / index.ts
Created February 20, 2023 07:19
hono + socket.io
import { serve } from "https://deno.land/std@0.162.0/http/server.ts";
import { Server } from "https://deno.land/x/socket_io@0.2.0/mod.ts";
import { Hono } from "https://deno.land/x/hono@v3.0.0/mod.ts";
import { logger, html } from "https://deno.land/x/hono@v3.0.0/middleware.ts";
const app = new Hono();
app.use("*", logger());
app.get("/", (c) => {
return c.html(
@Quinncuatro
Quinncuatro / SolanaToolchainInstaller.sh
Last active November 8, 2023 16:21
Shell Script to Install Node/Rust/Solana/Anchor/Metaplex/VS Code for Solana Web Development
#!/bin/bash
# Known working on a vanilla Ubuntu 20.04 install
# as of November 12 2021.
# Usage:
# $ sudo chmod +x ./SolanaToolchainInstaller.sh
# $ ./SolanaToolchainInstaller.sh
TIMESRUN=0
@dabit3
dabit3 / App.js
Created September 11, 2021 14:24
Solana + Anchor Counter front end (for example from docs)
import './App.css';
import { useEffect, useState } from 'react';
import {
Program,
Provider,
BN,
web3,
} from '@project-serum/anchor'
import {
Connection,