Skip to content

Instantly share code, notes, and snippets.

View nicodevs's full-sized avatar
🚀

Nico Devs nicodevs

🚀
View GitHub Profile
@nicodevs
nicodevs / index.html
Created November 28, 2025 12:21
Backbone
<!DOCTYPE html>
<html>
<head>
<title>Backbone To-Do App with $.getJSON</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.1/backbone-min.js"></script>
</head>
<body>
<div id="app"></div>
@nicodevs
nicodevs / something.md
Created July 11, 2025 16:40
Something

Auto Importing Components

Auto imports make refactoring much easier. If you change the name or location of a component—say, from Foo/HelloWorld to Bar/GoodByeWorld—auto imports save you from manually updating every import line across your codebase.

With auto import:

-<HelloWorld>
+<GoodByeWorld>
@nicodevs
nicodevs / index.blade.php
Created June 18, 2025 17:47
Guess This Drawing!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Guess This Drawing!</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Bowlby+One+SC&display=swap" rel="stylesheet">
</head>
@nicodevs
nicodevs / miso.md
Last active March 6, 2025 14:27
Mise Brainstorming

Those Mildly Annoying Manual Tasks

One of the things that mildly annoys me after installing Laravel is dealing with migrations I'll never use—or worse, accidentally running them.

What do I mean? Well, when you create a new Laravel project using the installer, you get three migrations by default:

  • The users migration
  • The cache migration
  • The jobs migration
@nicodevs
nicodevs / CourseSeeder.php
Last active September 28, 2025 22:04
Seeding Realistic Data Using AI
<?php
namespace Database\Seeders;
use App\Models\Course;
use PrismPHP\Prism\Prism;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\File;
use Prism\Prism\Schema\ArraySchema;
use Prism\Prism\Schema\NumberSchema;
@nicodevs
nicodevs / MovieSeeder.php
Created November 14, 2024 19:43
Movie Seeder
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class MovieSeeder extends Seeder
{
public function run()
@nicodevs
nicodevs / draft.md
Last active April 30, 2024 18:50
How to implement OG images on Jigsaw

Setup

Install Jigsaw. To get started quickly, install the blog template.

composer require tightenco/jigsaw
vendor/bin/jigsaw init blog
@nicodevs
nicodevs / 1.bar.md
Last active March 16, 2023 13:43
Question 1
level tags
3
pinia, state

Lorem Ipsum?

Correct

Alpha

@nicodevs
nicodevs / 3.bar.md
Last active March 15, 2023 13:06
MCQs

How would you write this code in options API?

<script setup>
defineProps({
  msg: String,
})
</script>

<template>
@nicodevs
nicodevs / banner.md
Created November 18, 2022 19:39
Black Friday Banner for Vuetify

Installation

To show the Vue School banner in your website, please include the following script tag in the <head>:

<script async type="text/javascript" src="https://vueschool.io/banners/main.js"></script>

This external script does the following: