Skip to content

Instantly share code, notes, and snippets.

View mchoiruln's full-sized avatar
🎯
Focusing

mchoiruln mchoiruln

🎯
Focusing
View GitHub Profile
@mchoiruln
mchoiruln / auth.js
Created May 24, 2021 07:45 — forked from jengel3/auth.js
Vue/Nuxt JWT Authentication Implementation
// store/auth.js
// reusable aliases for mutations
export const AUTH_MUTATIONS = {
SET_USER: 'SET_USER',
SET_PAYLOAD: 'SET_PAYLOAD',
LOGOUT: 'LOGOUT',
}
export const state = () => ({
@mchoiruln
mchoiruln / save_restore_dependencies.sql
Created November 7, 2019 11:40 — forked from mateuszwenus/save_restore_dependencies.sql
PostgreSQL: How to handle table and view dependencies
create table deps_saved_ddl
(
deps_id serial primary key,
deps_view_schema varchar(255),
deps_view_name varchar(255),
deps_ddl_to_run text
);
create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as
$$
@mchoiruln
mchoiruln / tweaks-sublime-italic-operator-mono.md
Created November 10, 2018 14:54 — forked from lavaldi/tweaks-sublime-italic-operator-mono.md
Operator Mono & Sublime Text 3 themes
  1. Install Package Resource Viewer.
  2. In package control window select ‘Package Resource Viewer: Open Resource’.
  3. Scroll down until you find the option: ‘Color Scheme — Default’ (or your theme with color scheme .tmTheme) and select it.
  4. Add the following
<!-- Operator Tweaks -->
  <dict>
    <key>name</key>
 Italic HTML attribute names
@mchoiruln
mchoiruln / 0_reuse_code.js
Created November 2, 2016 02:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console