Skip to content

Instantly share code, notes, and snippets.

View LeCoupa's full-sized avatar
:octocat:
Keep pushing ⚡️

Julien Le Coupanec LeCoupa

:octocat:
Keep pushing ⚡️
View GitHub Profile
@LeCoupa
LeCoupa / vue-i18n-indentation.ts
Created November 14, 2024 22:59
ESLint custom rule to enforce consistent indentation in i18n blocks in .vue files
// Check our product https://www.thecompaniesapi.com/
import type { Rule } from 'eslint'
const rule: Rule.RuleModule = {
meta: {
docs: {
category: 'Best Practices',
description: 'Enforce consistent indentation in i18n blocks',
recommended: true,
@LeCoupa
LeCoupa / vue-i18n-locales.ts
Last active November 14, 2024 22:28
ESLint custom rule to check missing i18n locales or missing keys in .vue files (or nuxt)
// Check our product: https://www.thecompaniesapi.com/
import { locales } from '@thecompaniesapi/shared'
import type { Locales } from '@thecompaniesapi/shared'
import type { Rule } from 'eslint'
const rule: Rule.RuleModule = {
meta: {
docs: {
category: 'Possible Errors',
@LeCoupa
LeCoupa / cofounder-cto.md
Last active November 27, 2023 11:40
Trouver un cofounder ou CTO

Trouver un cofounder ou CTO

1/ Concepts de base à avoir en tête

  • Un SaaS c'est du long terme. Quand tu cherches un cofounder il faut trouver quelqu'un avec qui tu vas aimer travailler et qui est prêt à s'investir avec toi sur le 5, 10, 20 ans. (The Companies API - Julien Le Coupanec)

  • Avant de s'associer il est important deja de travailler ensemble sur des petites choses histoire de voir si cela fit. (Trustt - Nadia Gabriel)

@LeCoupa
LeCoupa / shell_aliases
Last active July 18, 2024 15:58
Shell Aliases
##############################################################################
# SHELL ALIASES
# ADD TO .bashrc OR .zshrc
##############################################################################
# Capacitor
alias csync="npx cap sync"
alias cios="npx cap open ios"
alias cand="npx cap open android"
@LeCoupa
LeCoupa / deploy.yml
Created October 31, 2020 16:58
Github Action Deploy Script For Nuxt.js
name: Deploy
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
@LeCoupa
LeCoupa / tailwind_cheatsheet.css
Last active September 23, 2024 04:48
Tailwind CSS CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* TAILWIND.CSS
* DOCUMENTATION: https://tailwindcss.com/
* ******************************************************************************************* */
/*
* Available breakpoints
* --------------------
* sm: min-width: 640px;
* md: min-width: 768px;
/* *******************************************************************************************
* PUPPETEER
* https://pptr.dev/
* ******************************************************************************************* */
// When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win)
// that is guaranteed to work with the API.
npm install puppeteer
/* *******************************************************************************************
* GLOBAL CONFIG
* Vue.config is an object containing Vue’s global configurations.
* You can modify its properties listed below before bootstrapping your application.
* https://vuejs.org/v2/api/#Global-Config
* ******************************************************************************************* */
// Configure whether to allow vue-devtools inspection
Vue.config.devtools = true
/* *******************************************************************************************
* GLOBAL OBJECTS > ARRAY
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
* ******************************************************************************************* */
// Global object: properties
Array.length // Reflects the number of elements in an array
// Global object: methods
@LeCoupa
LeCoupa / 1_nanobox_cli.sh
Last active October 22, 2023 12:09
Nanobox Cheatsheet: CLI commands and Boxfile --> https://github.com/LeCoupa/awesome-cheatsheets
# *****************************************************************************
# UPDATED VERSION AVAILABLE HERE:
# https://github.com/LeCoupa/awesome-cheatsheets/blob/master/tools/nanobox_cli.sh
# *****************************************************************************
# *****************************************************************************
# LOCAL ENVIRONMENT
# *****************************************************************************