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
### Old | |
ap1/v1/products | |
filter[purchased] = true | |
products | |
attributes | |
- name | |
- amount | |
... etc |
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
# Converts | |
# This | |
# { | |
# attributes: { | |
# name: 'jude', | |
# address.street: 'main street', | |
# address.city: 'cebu' | |
# }, | |
# relationships: { checkout: { data: { id: 2, type: 'checkouts' } } } | |
# } |
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 " be iMproved, required | |
filetype off " required | |
call plug#begin('~/.vim/plugged') | |
" let Vundle manage Vundle, required | |
" Plug 'gmarik/Vundle.vim' | |
" Color schemes | |
"Plug 'phanviet/vim-monokai-pro' |
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
# frozen_string_literal: true | |
class MetrofoodProductSearch | |
include BaseService | |
include Filterable | |
attr_reader :repository, :relation, :current_user, :sort, :page, :filters | |
def initialize(current_user, sort, page, filters) | |
@repository = MetrofoodProductRepository.new |
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
# frozen_string_literal: true | |
module ChainOfResponsibility | |
attr_accessor :next | |
def handle(result) | |
@next&.handle(result) || result # Run next handler or return result | |
end | |
end |
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
keycode Caps_Lock = Mode_switch | |
!Map Capslock + h/j/k/l to arrow keys | |
keysym h = h H Left | |
keysym l = l L Right | |
keysym k = k K Up | |
keysym j = j J Down | |
!Map Capslock + ESC to ` | |
!Map Capslock + Shift + Esc to ~ |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
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
launch tmux -Lkitty | |
font_family Fira Code Retina | |
font_size 10.0 | |
bold_font auto | |
italic_font auto | |
bold_italic_font auto | |
/*window_margin_width 0.0*/ | |
/*window_padding_width 0.0*/ |
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
{ | |
"solargraph.diagnostics": true, | |
"solargraph.formatting": true, | |
"solargraph.hover": true, | |
"typescript.suggest.enabled": true, | |
"tsserver.enableJavascript": true, | |
"javascript.suggest.enabled": true, | |
"eslint.enable": true, | |
"eslint.filetypes": [ | |
"javascript", |
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 " be iMproved, required | |
filetype off " required | |
call plug#begin('~/.vim/plugged') | |
" let Vundle manage Vundle, required | |
" Plug 'gmarik/Vundle.vim' | |
" Color schemes | |
Plug 'phanviet/vim-monokai-pro' |
NewerOlder