Skip to content

Instantly share code, notes, and snippets.

View vinchi777's full-sized avatar

Jude vinchi777

View GitHub Profile
@vinchi777
vinchi777 / gist:64cde476ee8ac7650566df4b78521aec
Created August 8, 2024 12:01
Wisesavings Terms of service
# WiseSavings Terms of Service
## Welcome to WiseSavings!
### Introduction
Please read these Terms of Service ("Terms", "Terms of Service") carefully before using the WiseSavings application ("Service") operated by WiseSavings Inc. ("us", "we", or "our"). Your access to and use of the Service is conditioned on your acceptance of and compliance with these Terms. These Terms apply to all visitors, users, and others who access or use the Service.
### Acceptance of Terms
By accessing or using the Service, you agree to be bound by these Terms. If you disagree with any part of the terms then you do not have permission to access the Service.
@vinchi777
vinchi777 / policy.txt
Last active August 8, 2024 11:47
Wisesavings Privacy policy
### Privacy Policy for Wisesavings
**Effective Date:** [Insert Date]
**Last Updated:** [Insert Date]
Thank you for choosing Wisesavings. We are committed to protecting your privacy and ensuring the security of your personal information. This Privacy Policy outlines how we collect, use, and safeguard your data when you use our budget tracking application.
### 1. Information We Collect
We collect the following types of information to provide and improve our services:
### Old
ap1/v1/products
filter[purchased] = true
products
attributes
- name
- amount
... etc
@vinchi777
vinchi777 / son_api_spec_param_normalizer.rb
Created August 27, 2021 12:14
Nested attribute normalizer
# Converts
# This
# {
# attributes: {
# name: 'jude',
# address.street: 'main street',
# address.city: 'cebu'
# },
# relationships: { checkout: { data: { id: 2, type: 'checkouts' } } }
# }
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'
# 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
@vinchi777
vinchi777 / chain.rb
Last active April 13, 2021 07:47
Chain of responsibility pattern
# frozen_string_literal: true
module ChainOfResponsibility
attr_accessor :next
def handle(result)
@next&.handle(result) || result # Run next handler or return result
end
end
@vinchi777
vinchi777 / xmodmap
Last active February 26, 2021 11:43
Keybindings for linux
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 ~
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
@vinchi777
vinchi777 / kitty.conf
Created July 23, 2019 12:58
Kitty terminal config
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*/