Skip to content

Instantly share code, notes, and snippets.

View sawirricardo's full-sized avatar
👋

Ricardo Sawir sawirricardo

👋
View GitHub Profile
@sawirricardo
sawirricardo / django-packages.sh
Last active February 14, 2023 03:40
Django must use packages
poetry add django;
poetry add djangorestframework;
poetry add django-cors-headers;
poetry add drf-extensions;
poetry add django-environ;
poetry add django-extensions;
poetry add django-filter;
poetry add django-storages;
poetry add django-redis;
poetry add django-lifecycle;
@sawirricardo
sawirricardo / EnableSsrMiddleware.php
Last active September 17, 2022 13:55
laravel inertia setup
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class EnableSsrMiddleware
{
protected $expect = [
@sawirricardo
sawirricardo / laravel npm install
Created July 25, 2022 07:08
Laravel almost must use npm install
npm i -D tailwindcss;
npm i -D @tailwindcss/forms;
npm i -D @tailwindcss/typography;
npm i -D postcss;
npm i -D autoprefixer;
npm i -D alpinejs;
npm i -D @alpinejs/focus;
npm i -D tippy.js;
<?php
namespace App\Providers;
use Filament\Facades\Filament;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@sawirricardo
sawirricardo / VueExtension.txt
Last active May 9, 2022 07:02
Vue almost must use command
npm install vue-router@4;
npm install @vueuse/core;
npm install @vueuse/head;
npm install vee-validate;
npm install zod;
npm install @vee-validate/zod;
npm install nprogress;
npm install axios;
npm install focus-trap;
npm install pinia;
@sawirricardo
sawirricardo / pubspec.yaml
Created December 16, 2021 02:16
Flutter getx almost must used
name: my_app
version: 1.0.0+1
publish_to: none
description: A new Flutter project.
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
cupertino_icons: ^1.0.2
flutter_dotenv: ^5.0.2
@sawirricardo
sawirricardo / file.txt
Created November 26, 2021 07:32
Shortcut to init new hardhat project
npm init -y;
npm install --save-dev hardhat;
npm install @openzeppelin/contracts;
npx hardhat;
@sawirricardo
sawirricardo / lightweb3.js
Last active November 1, 2021 08:17
Lightweb3 JS
import { ethers } from "ethers";
import Web3Modal from "web3modal";
// import WalletConnectProvider from "@walletconnect/web3-provider";
import axios from "axios";
class Lightweb3 {
constructor(
web3ModalOptions = {
cacheProvider: true,
disableInjectedProvider: false,
@sawirricardo
sawirricardo / npm install web3.txt
Last active November 1, 2021 04:10
npm install web3
npm i -D ethers@latest web3modal@latest @walletconnect/web3-provider;
// optional
npm i -D fortmatic@latest;
@sawirricardo
sawirricardo / adonisjs npm.txt
Last active September 13, 2021 04:24
AdonisJS npm command compiled
npm i phc-argon2;
npm i socket.io @types/socket.io;
npm i execa;
npm i @adonisjs/lucid-slugify;
node ace configure @adonisjs/lucid-slugify;
npm i --save adonis-request-throttler;
node ace configure adonis-request-throttler;
npm i adonis5-scheduler;
node ace invoke adonis5-scheduler;