Skip to content

Instantly share code, notes, and snippets.

View vinchi777's full-sized avatar

Jude vinchi777

View GitHub Profile
# 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
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'
@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' } } }
# }
### Old
ap1/v1/products
filter[purchased] = true
products
attributes
- name
- amount
... etc
@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:
@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.