Skip to content

Instantly share code, notes, and snippets.

View IsraelOgas's full-sized avatar
🐈
Working...

Israel Ogas IsraelOgas

🐈
Working...
  • Viña del Mar, Chile
  • 02:31 (UTC -04:00)
View GitHub Profile
"use client";
import {
Dialog,
DialogContent,
DialogTitle,
DialogTrigger
} from "@/components/ui/dialog";
import useDragDrop from "@/hooks/useDragDrop";
import { cn, formatBytes } from "@/lib/utils";
@nivethan-me
nivethan-me / README.md
Last active December 4, 2024 03:49
Setup a Next.js 13 project with Eslint + Prettier with automatic tailwind class sorting
@Klerith
Klerith / time-since.ts
Created November 2, 2022 20:36
Fecha de creación humana
export const timeSince = ( date: string ) => {
const baseDate = new Date(date)
const seconds = Math.floor(( new Date().getTime() - baseDate.getTime() ) / 1000);
let interval = seconds / 31536000;
@Klerith
Klerith / typescript.json
Created February 2, 2022 22:52
React - Context Snippets
{
// Place your snippets for typescript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@Pathoschild
Pathoschild / stardew-mod-recommendations.md
Last active August 5, 2025 18:47
Stardew Valley mod recommendations

Here are the mods I recommend. These are all compatible with the latest versions of SMAPI and Stardew Valley on Linux/macOS/Windows. See the player's guide to using mods if you're interested.

Base frameworks

@madeindjs
madeindjs / defer.js
Created December 2, 2016 14:28
make script execution wait until jquery is loaded
function defer(method) {
if (window.jQuery)
method();
else
setTimeout(function() { defer(method) }, 50);
}