Skip to content

Instantly share code, notes, and snippets.

View CamiloFG04's full-sized avatar
🎯
Focusing

Camilo Fernandez CamiloFG04

🎯
Focusing
  • Bogotá/Colombia
View GitHub Profile
@Klerith
Klerith / time-since.ts
Created November 9, 2022 19:56
Time Since
export const timeSince = ( date: string ) => {
const baseDate = new Date(date)
const seconds = Math.floor(( new Date().getTime() - baseDate.getTime() ) / 1000);
let interval = seconds / 31536000;
if (interval > 1) {
@Klerith
Klerith / index.ts
Last active August 20, 2025 12:32
Vuex + TypeScript - Store Structure Strongly Typed
import { createStore } from 'vuex';
// My custom modules
import exampleModule from './module-template';
import { ExampleStateInterface } from './module-template/state';
export interface StateInterface {
// Define your own store structure, using submodules if needed
// example: ExampleStateInterface;
@justinatack
justinatack / Quasar Framework Login Form Card Component Example
Last active August 16, 2024 13:27
Quasar Framework Login Form Card Component Example
<template>
<q-page class="bg-light-green window-height window-width row justify-center items-center">
<div class="column">
<div class="row">
<h5 class="text-h5 text-white q-my-md">Company & Co</h5>
</div>
<div class="row">
<q-card square bordered class="q-pa-lg shadow-1">
<q-card-section>
<q-form class="q-gutter-md">