git rev-parse --show-toplevel = get root directory for git folder
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
{ | |
"meta": { | |
"count": 10, | |
"total": 534, | |
"tz": "UTC" | |
}, | |
"data": [ | |
{ | |
"type": "lists", | |
"id": "008221860b", |
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
" | |
function! GenerateAssertion(domain, table, const, attribute, foreign) | |
let l:base='GreenBuildingVerification' | |
let l:table='prop_green_building_verifications' | |
let l:attribute='green_building_verification' | |
let l:const='GREEN_BUILDING_VERIFICATION_TYPE' | |
let l:foreign='green_building_verification_id' | |
" pivot assertion | |
execute '!cp -rf ./tests/Controllers/Concerns/PivotAssertion/'.l:base.'.php tests/Controllers/Concerns/PivotAssertion/'.a:domain.'.php' |
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
function! LinterStatus() abort | |
let l:counts = ale#statusline#Count(bufnr('')) | |
let l:all_errors = l:counts.error + l:counts.style_error | |
let l:all_non_errors = l:counts.total - l:all_errors | |
return l:counts.total == 0 ? '' : printf( | |
\ ' [%dW %dE]', | |
\ all_non_errors, | |
\ all_errors |
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
Sesi 3 BDV |
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
@extends('layouts.app') | |
@section('content') | |
<div class="container"> | |
<a href="{{ route('posts.create') }}" class="btn btn-default">Tulisan baru</a> | |
<table class="table table-striped"> | |
<thead> | |
<tr> | |
<th>#</th> | |
<th>Judul</th> |
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
function! GenerateDomain(domain, table, relationship, config, const, payload_field, foreign) | |
" contracts | |
execute '!cp -rf ./app/Contracts/Basement app/Contracts/'.a:domain | |
execute "!find ./app/Contracts/".a:domain." -type f | xargs sed -i '' -e 's/Basement/".a:domain."/g'" | |
execute "!find ./app/Contracts/".a:domain." -type f | sed 'p;s/Basement/".a:domain."/g' | xargs -n2 mv" | |
" domain | |
execute '!cp -rf app/Domains/Basement app/Domains/'.a:domain | |
execute "!find ./app/Domains/".a:domain." -type f | sed 'p;s/Basement/".a:domain."/g' | xargs -n2 mv" | |
execute "!find ./app/Domains/".a:domain." -type f | xargs sed -i '' -e 's/Basement/".a:domain."/g'" |
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
function! ApiaryToPhp() | |
set ignorecase | |
set textwidth=80 | |
" turn to $table->tipe..('field');(tipe..)... | |
execute "normal! dt`r'f`r'" | |
execute "normal! ldt(lyi(" | |
execute "normal! 0i$table->\<ESC>pa(\<ESC>f';a);\<ESC>" | |
" save description as comment if type is lookup | |
" for easier setup relationship manually | |
let notLookup = ["string", "boolean", "number"] |
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
{ | |
"meta": { | |
"errors": [ | |
"Row #2: validation.unique", | |
"Row #4: validation.unique", | |
"Row #5: validation.unique", | |
"Row #6: validation.required", | |
"Row #7: validation.required", | |
"Row #8: validation.required", | |
"Row #9: validation.required", |