Skip to content

Instantly share code, notes, and snippets.

View ArielMejiaDev's full-sized avatar
🐘
Focusing

ArielMejiaDev ArielMejiaDev

🐘
Focusing
View GitHub Profile
@ArielMejiaDev
ArielMejiaDev / form.tsx
Created April 13, 2024 09:17 — forked from Sutil/form.tsx
Shandcn UI Money Mask Input - NextJS.
"use client";
import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form";
import MoneyInput from "src/components/custom/money-input";
import { Button } from "src/components/ui/button";
import { Form } from "src/components/ui/form";
import * as z from "zod";
const schema = z.object({
@ArielMejiaDev
ArielMejiaDev / data-table.tsx
Created March 19, 2024 20:46 — forked from nicostombros/data-table.tsx
Shadcn UI implementation of DataTable and Pagination components working together
// same as your regular shadcn datatable implementation (which uses tanstack table)
// note that the shadcn datatable uses shadcn table for the ui. see https://ui.shadcn.com/docs/components/data-table
import {
ColumnFiltersState,
SortingState,
VisibilityState,
flexRender,
getCoreRowModel,
getFilteredRowModel,
@ArielMejiaDev
ArielMejiaDev / build-and-deploy.yml
Created October 10, 2023 22:02 — forked from imlautaro/build-and-deploy.yml
Workflow to deploy a Nuxt 3 app to GitHub Pages with NPM
name: Build and Deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
@ArielMejiaDev
ArielMejiaDev / build-and-deploy.yml
Created October 10, 2023 22:02 — forked from imlautaro/build-and-deploy.yml
Workflow to deploy a Nuxt 3 app to GitHub Pages with PNPM
name: Build and Deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
const convertToKebabCase = (string) => {
return string.replace(/\s+/g, '-').toLowerCase();
}
<template>
<div>
<input
type="text"
placeholder="Search Your Interest"
@input="debounceSearch()"
v-model="searchInput"
/>
</div>
</template>
@ArielMejiaDev
ArielMejiaDev / laravel_valet_setup.md
Created May 23, 2023 11:20 — forked from bradtraversy/laravel_valet_setup.md
Laravel Valet install on mac

Laravel Valet Setup (Mac)

This will get you setup with Laravel & Valet on your Mac. Quentin Watt has a good video tutorial on getting setup here as well

Install Homebrew

Go to https://brew.sh/ and copy the command and run in your terminal

It will be something like this...

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@ArielMejiaDev
ArielMejiaDev / .Laravel-Jetstream-Inertia.md
Created March 17, 2023 18:43 — forked from kossoy/.Laravel-Jetstream-Inertia.md
Setup project with Laravel, Jetstream (FB and Google through Socialite), and Inertia.js with Vue.js
<link rel="apple-touch-icon" href="path/to/touchicon.png">
<link rel="icon" href="path/to/favicon.png">
<!--[if IE]><link rel="shortcut icon" href="path/to/favicon.ico"><![endif]-->
<!-- or, set /favicon.ico for IE10 win -->
<meta name="msapplication-TileColor" content="#D83434">
<meta name="msapplication-TileImage" content="path/to/tileicon.png">
@ArielMejiaDev
ArielMejiaDev / NamespaceHelper.php
Created October 18, 2022 01:05 — forked from SrcFlux/NamespaceHelper.php
Get the namespace of a class in Laravel
<?php
namespace App\Helpers;
class NamespaceHelper
{
/**
* Get the namespace of a class.
*
* @param string $className