Skip to content

Instantly share code, notes, and snippets.

View dodycode's full-sized avatar
🏠
Working from home

Dody dodycode

🏠
Working from home
View GitHub Profile
@dodycode
dodycode / web.php
Created August 3, 2019 15:38
Force Laravel to read Vue-Router routes
Route::get('/{vue_capture?}', function () {
return view('your-main-blade');
})->where('vue_capture', '[\/\w\.-]*');
@dodycode
dodycode / normalize.css
Last active March 4, 2022 23:16
My default normalize setting for browser css
* {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
box-sizing: border-box;
overflow:auto;
@dodycode
dodycode / ros.css
Created September 24, 2022 06:06
my simple animation
.ros {
opacity: 0;
transform: translateY(60px) translateZ(0);
transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.ros--left {
transform: translateX(-60px) translateZ(0);
}
.ros--right {
transform: translateX(60px) translateZ(0);
@dodycode
dodycode / db.server.ts
Last active July 15, 2023 06:43
just prisma db thing for remix js..
import { PrismaClient } from "@prisma/client";
let db = new PrismaClient();
declare global {
var __db__: PrismaClient | undefined;
}
if (process.env.NODE_ENV === "production") {
db = new PrismaClient();