Skip to content

Instantly share code, notes, and snippets.

<template>
<div class="hero min-h-screen bg-base-200" v-show="game.state === 0">
<div class="text-center hero-content">
<div class="max-w-md">
<h1 class="mb-5 text-5xl font-bold">
Hello {{ player.name || "Player" }}
</h1>
<p class="mb-5">Do you want to play?</p>
<div class="form-control pb-8">
<input
<template>
<div>
<div
v-if="showModal"
class="overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none justify-center items-center flex"
>
<div class="relative w-auto my-6 mx-auto max-w-sm">
<!--content-->
<div
class="border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none"
@Cipa
Cipa / megamillions.blade.php
Created November 2, 2022 02:34
megamillions blade
@extends('layouts.app')
@section('title', 'Mega Millions')
@section('content')
<div class="container mx-auto py-5 px-1">
<h1 class="text-center text-2xl">Mega Millions</h1>
<hr>
<p class="pt-4">Enter five different numbers from 1 to 70 in the gray boxes and one number from 1 to 25 in the
@Cipa
Cipa / User.php
Created November 2, 2022 02:32
User
<?php
namespace App;
use Illuminate\Support\Facades\DB;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
@Cipa
Cipa / UniqueNumbers.php
Created November 2, 2022 02:30
validation rule
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class UniqueNumbers implements Rule
{
/**
* Create a new rule instance.
@Cipa
Cipa / deploy.sh
Created June 14, 2020 23:17 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin master
@Cipa
Cipa / gist:62e40f9ac95d65ddcadd
Created February 17, 2015 21:45
test atom search replace
var industry=
[{"id":"ABIFA", "name":"Accounting, Banking, Insurance & Finance" , "occupation":[
{"id":"ACTNT","name":"Accountant"}
,
{"id":"ACTUR","name":"Actuary"}
,
{"id":"AUDIT","name":"Auditor"}
,
@Cipa
Cipa / gist:97a8630289afbc3ce623
Created January 31, 2015 18:30
enable gzip i htaccess if gzip and deflate are installed
#compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
<Files *.html>
SetOutputFilter DEFLATE
</Files>
@Cipa
Cipa / gist:db303f3771f782c24f2c
Created July 8, 2014 13:18
add an empty select option to a TV
@SELECT '-- Select --' as pagetitle , '' AS id UNION ALL SELECT `pagetitle`, `id` FROM `[+PREFIX+]site_content` WHERE `template` IN (8, 12, 16, 17) AND `deleted` = 0 and `published` = 1 ORDER BY pagetitle ASC
@Cipa
Cipa / force pdf download
Created June 25, 2013 12:51
force pdf download
<FilesMatch "\.(?i:pdf)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
##you can also use html5 download attribute
##<a href="/files/adlafjlxjewfasd89asd8f.pdf" download="expenses.pdf">Download Your Expense Report</a>
##<a href="expenses.pdf" download>Download Your Expense Report</a>