Skip to content

Instantly share code, notes, and snippets.

<?php
use Illuminate\Support\Collection;
use Illuminate\View\View;
class Navigation {
public function compose(View $view) {
$menu = new Collection;
@mishbah
mishbah / app.scss
Last active August 29, 2015 14:11 — forked from calendee/app.scss
form i.icon.error {
color: $assertive;
}
form input + i.icon.error {
display: none;
margin-left: 8px;
}
form.ng-submitted input.ng-invalid + i.icon.error {
@mishbah
mishbah / node_service
Last active August 29, 2015 14:12 — forked from qharlie/gist:5271721
Sample script for upstart
#!upstart
description "MyApp"
author "MyApp by charlie"
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
respawn
start on runlevel [23]
stop on shutdown
@mishbah
mishbah / UUID.php
Last active August 29, 2015 14:18 — forked from dahnielson/UUID.php
<?php
/**
* UUID class
*
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
*
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.
@mishbah
mishbah / README.md
Last active August 29, 2015 14:27 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@mishbah
mishbah / Gulpfile.js
Last active August 29, 2015 14:27 — forked from laracasts/Gulpfile.js
PHPSpec auto-testing Gulpfile
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var run = require('gulp-run');
var notify = require('gulp-notify');
gulp.task('test', function() {
gulp.src('spec/**/*.php')
.pipe(run('clear'))
.pipe(phpspec('', { notify: true }))
.on('error', notify.onError({
@mishbah
mishbah / Gulpfile.js
Created August 21, 2015 00:54
Gulpfile for TDD
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var run = require('gulp-run');
var notify = require('gulp-notify');
gulp.task('test', function(){
run('clear', {'usePowerShell': true}).exec('Vinyl', function(){
gulp.src('spec/**/*.php')
.pipe(phpspec('', { notify: true}))
.on('error', notify.onError({
@mishbah
mishbah / ApiTester.php
Last active August 26, 2015 00:10 — forked from laracasts/ApiTester.php
Incremental APISs: Refactoring Tests and Traits
<?php
use Faker\Factory as Faker;
abstract class ApiTester extends TestCase {
/**
* @var Faker
*/
protected $fake;
Kode Nama Lengkap
002 PT. BANK RAKYAT INDONESIA (PERSERO), Tbk
008 PT. BANK MANDIRI (PERSERO), Tbk
009 PT. BANK NEGARA INDONESIA (PERSERO),Tbk
011 PT. BANK DANAMON INDONESIA, Tbk
013 PT. BANK PERMATA, Tbk (d/h PT BANK BALI Tbk)
014 PT. BANK CENTRAL ASIA, Tbk.
016 PT. BANK INTERNASIONAL INDONESIA, Tbk
019 PT. PAN INDONESIA BANK, Tbk
022 PT. BANK CIMB NIAGA, Tbk d/h NIAGA
@mishbah
mishbah / .vimrc
Created December 28, 2015 01:35 — forked from JeffreyWay/.vimrc
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15