Skip to content

Instantly share code, notes, and snippets.

View hisamafahri's full-sized avatar
Building the future!

Hisam Fahri hisamafahri

Building the future!
View GitHub Profile
void main() {
dateTimeConverter();
}
//The codes below is the manual way to change it. (I know it is not effective)
DateTime dateTimeConverter (){
String month;

Setup Public S3 Bucket

Configure S3 Bucket

Create two buckets with name as you want *note: you can choose whatever name

Set the bucket policy

Make sure to turn off the "Block all public access" section: image

Keybase proof

I hereby claim:

  • I am hisamafahri on github.
  • I am hisamafahri (https://keybase.io/hisamafahri) on keybase.
  • I have a public key ASC-m1sQ-uhM4XIIQbJTt7dYglkXHaTH_eQAfjuX2rZaJwo

To claim this, I am signing this object:

@hisamafahri
hisamafahri / multiselect.tsx
Created February 12, 2024 05:38
A multi-select component built with cmdk and shadcn components.
"use client";
// Ref:
// https://github.com/shadcn-ui/ui/issues/66#issuecomment-1587535478
// https://github.com/mxkaske/mxkaske.dev/blob/8d92a57ae68050211f59cd06d50d1023941c2ee0/components/craft/fancy-multi-select.tsx
import * as React from "react";
import { X } from "lucide-react";
import { Badge } from "@/components/ui/badge";
@hisamafahri
hisamafahri / index.tsx
Created March 5, 2024 05:23
axiom like json stringify formatter. https://i.imgur.com/nM3x94w.png
interface CustomObject {
[key: string]: unknown;
}
const formatObject = (obj: CustomObject): JSX.Element => (
<span>
{"{"}
{Object.keys(obj).map((key, index) => (
// eslint-disable-next-line react/no-array-index-key
<span key={index}>