Skip to content

Instantly share code, notes, and snippets.

GET /api/v2/summaries/manual_confirmations

Query Params:

  • group[optional], Group of data (daily, monthly, yearly), the default was daily
  • status[optional], Status of manual confirmation
  • start_date[optional], Start date of transaction date manual confirmation, the default was current date.
  • end_date[optional], End date of transaction date manual confirmation, the default was current date.
  • page[optional], the page of api. The default was 1

Review

Hmn, sebenernya ini gk tau sih review dari sisi UX atau UI, tapi kira-kira:

Background

Udah keren sih, tapi mungkin pemilihan untuk pake gradient horizontal terlalu berani om, selain implementasinya sulit, gw jarang ngeliat website yang pake gitu. Untuk bola-bolanya bagus sih, tapi faktor screen size web mungkin bisa diperhatikan juga senpai, kalo screennya di mobile atau di tab, bagaimana dengan bola-bolanya, takutnya jadi contrast sama contentnya. Menurut ane untuk background kayak gini lebih cocok di poster sih, kalo di web bisa dibuat lebih simple lagi senpai.

GET /api/v2/manual_confirmations

{
  "data": [
    {
      "id": "sample",
      "type": "manual_confirmation",
      "attributes": {
 "id": "sample",
```
$> RAILS_ENV=production bundle exec rake assets:precompile > output.txt
Compiling…
Compilation failed:
warning package.json: No license field
Hash: ed08f306eab6abe81ce4
Version: webpack 4.41.6
Time: 125559ms
Built at: 05/20/2020 8:48:17 AM

Before:

$> brakeman --only-files app/models/plugin_mokapos_setting.rb
Loading scanner...
Processing application in /Users/philiplambok/Codes/ruby/quickbook
Processing gems...
[Notice] Detected Rails 4 application
Processing configuration...
[Notice] Escaping HTML by default
Parsing files...
{
"editor.fontFamily": "Jetbrains Mono, Dank Mono, Menlo, Monaco, 'Courier New', monospace",
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "Monokai Pro Icons",
"window.zoomLevel": -1,
"editor.tabSize": 2,
"ruby.useLanguageServer": true,
"ruby.lint": {
"ruby": true
},
@philiplambok
philiplambok / presenter.md
Created December 13, 2019 02:46
Simple presenter/decorator/view-model/you-name-it <3
# Presenter

user = User.find_by(id: params[:id]) # <first_name='Nobu'; last_name='Boki'>
@user = UserPresenter.new(user)
@user.name # 'Nobu Boki'

# When use in collections
users = UserPresenter.to_collection(User.all)
users.first.class.name # UserPresenter

SimpleBuilder

Make paramameter more cute than your waifu >//<

# app/builders/date.rb

class Date
  include SimpleBuilder
pipeline {
    agent any
    stages {
        stage('Preparation') {
            steps {
                git branch: '**', 
                credentialsId: '95ba7d88-78e8-429d-8d3a-bb51a6800c37', 
                url: '[email protected]:harukaedudev/ahmeng.git'
 }
@philiplambok
philiplambok / proposal.md
Last active September 4, 2019 04:22
proposal-refactor-csrf-token.md

Before

<template>....</template>

<script>
export default {
  data(){
    return {
      user: {