Skip to content

Instantly share code, notes, and snippets.

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

Hams Kuveluka hamswaldenkv

🏠
Working from home
View GitHub Profile
@hamswaldenkv
hamswaldenkv / youtube-channel.tsx
Created April 10, 2024 07:21 — forked from steven-tey/youtube-channel.tsx
YoutubeChannel RSC
import { BlurImage, YouTube } from "@dub/ui";
import { nFormatter } from "@dub/utils";
import { Eye, UserCheck, Video } from "lucide-react";
import { Suspense } from "react";
export function YoutubeChannel({ id }: { id: string }) {
return (
<Suspense fallback={<div className="not-prose grid gap-4"></div>}>
<YoutubeChannelRSC id={id} />
</Suspense>
@hamswaldenkv
hamswaldenkv / GetWeeksInMonth.js
Created August 29, 2020 09:22 — forked from markthiessen/getWeeksInMonth.js
JavaScript - get weeks in a month as array of start and end days
//note: month is 0 based, just like Dates in js
function getWeeksInMonth(month, year){
var weeks=[],
firstDate=new Date(year, month, 1),
lastDate=new Date(year, month+1, 0),
numDays= lastDate.getDate();
var start=1;
var end=7-firstDate.getDay();
while(start<=numDays){
@hamswaldenkv
hamswaldenkv / index.html
Created October 6, 2018 07:22
Simple react popup example
<div id="content"></div>