This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE | |
TABLE | |
users( | |
id SERIAL PRIMARY KEY, | |
is_admin BOOLEAN | |
); | |
ALTER TABLE | |
users ENABLE ROW LEVEL SECURITY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** ---- Without RLS ---- ** | |
1. Check if user is a member of the org | |
a. If so, execute the update query | |
b. Else, return a 404 | |
*/ | |
Org update(userId, orgId, updatePayload) { | |
if (dao.isOrgMember(userId, orgId)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE | |
TABLE | |
users( | |
id SERIAL PRIMARY KEY | |
); | |
CREATE | |
TABLE | |
orgs( | |
id SERIAL PRIMARY KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Ansi 4 Color" : { | |
"Red Component" : 0.50980395078659058, | |
"Color Space" : "sRGB", | |
"Blue Component" : 1, | |
"Alpha Component" : 1, | |
"Green Component" : 0.66666668653488159 | |
}, | |
"Tags" : [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " required | |
filetype off " required | |
syntax on | |
set background=dark | |
set backspace=indent,eol,start | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() |