Skip to content

Instantly share code, notes, and snippets.

View nicodevs's full-sized avatar
🚀

Nico Devs nicodevs

🚀
View GitHub Profile
@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:

// Warning: this is just a non-tested example, take it as an starting point draft :)
import castArray from 'lodash/castArray'
const state = reactive({
data: {},
token: ''
})
const getCookieParams = () => {
@nicodevs
nicodevs / index.html
Created September 16, 2021 22:40
CKEditor Vue 2 from CDN
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Demo</title>
</head>
<body>
<div id="app">
<ckeditor v-model="editorData" :config="editorConfig"></ckeditor>
@nicodevs
nicodevs / testing_tips.md
Created August 24, 2020 19:45
Tips for advanced Vue testing

Tips for advanced testing

Consider the following Vue single file component:

<template>
  <form
    :class="theme"
 @submit.prevent="submit"&gt;
@nicodevs
nicodevs / article.md
Created August 24, 2020 12:27
Some cool article title

A nice title

The first section.

In this article we will learn:

  • Foo
  • Bar
  • Baz
{
"data": [
{
"id": 2,
"content": "My first post",
"user_id": 1,
"user": {
"id": 1,
"first_name": "John",
"last_name": "Doe",