Skip to content

Instantly share code, notes, and snippets.

Rahmat Awaludin rawaludin

Block or report user

Report or block rawaludin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mc.json
"meta": {
"count": 10,
"total": 534,
"tz": "UTC"
"data": [
"type": "lists",
"id": "008221860b",
View code-generator.vim
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:foreign='green_building_verification_id'
" pivot assertion
execute '!cp -rf ./tests/Controllers/Concerns/PivotAssertion/'.l:base.'.php tests/Controllers/Concerns/PivotAssertion/'.a:domain.'.php'
View statusline.vim
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:all_errors
return == 0 ? '' : printf(
\ ' [%dW %dE]',
\ all_non_errors,
\ all_errors
View post index blade php
<div class="container">
<a href="{{ route('posts.create') }}" class="btn btn-default">Tulisan baru</a>
<table class="table table-striped">
View GenerateDomain.vim
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'"
View apiary-to-php.vim
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"]
View gist:df51638335c4d28fbf27f98a5024359f
"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",
View payload.json
"first_name":"TestContact update_custom_fields"
"relationships": {
"object-custom-fields": {
"data": [
"attributes": {
View update existing address
"first_name":"TestContact update_addresses"
"id": 12,
You can’t perform that action at this time.