This file contains hidden or 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
<?php | |
require 'movement.php'; | |
require 'register_aop.php'; | |
try { | |
$movement = new Movement; | |
$movement->walk(); | |
$movement->run(); |
This file contains hidden or 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
// *********************** SYNTAX ************************* | |
/** | |
* Function Declaration. | |
* | |
* Nama pada tubuh fungsi itu wajib sifatnya | |
*/ | |
function deklarasi(){ | |
} | |
This file contains hidden or 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
var ContohCollection = Backbone.Collection.extend({ | |
// .... | |
initialize: function() { | |
this.model.on("something", this.onSomething, this); | |
}, | |
onSomething: function() { | |
} | |
// .... |
This file contains hidden or 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
// # Ghost Configuration | |
// Setup your Ghost install for various environments | |
var path = require('path'), | |
config; | |
config = { | |
disqus: 'idjsblog', // DISQUS SHORTNAME | |
// sisanya | |
}; |
This file contains hidden or 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
<p>Merah: #E74C3C</p> | |
<p>Kuning: #F1C40F</p> | |
<p>Hijau: #27AE60</p> | |
<p>Biru: #2980B9</p> |
This file contains hidden or 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
<?php | |
class TestCase extends Illuminate\Foundation\Testing\TestCase { | |
/** | |
* Creates the application. | |
* | |
* @return \Symfony\Component\HttpKernel\HttpKernelInterface | |
*/ | |
public function createApplication() |
This file contains hidden or 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 hitung(a, b, c) { | |
// mengetahui berapa jumlah parameter yang dimiliki oleh fungsi ini | |
console.log(hitung.length); // => 3 | |
// mengetahui berapa jumlah argumen yang diberikan ke fungsi ini | |
// ketika ia dijalankan | |
console.log(arguments.length); // => 2 | |
} | |
hitung(1, 2); |
This file contains hidden or 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
# tambahkan baris dibawah ini pada berkas /etc/modprobe.d/blacklist.conf | |
blacklist ideapad_laptop |
This file contains hidden or 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
define(function(require) { | |
'use strict'; | |
var _ = require('underscore') | |
return { | |
handleAjaxSuccess: function() { | |
if (_.isFunction(this.closeForm)) { | |
this.closeForm() | |
} |
This file contains hidden or 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
define(function(require) { | |
'use strict'; | |
var Backbone = require('backbone'), | |
Wreqr = require('backbone.wreqr'), | |
_ = require('underscore'); | |
function MB() { | |
this.vent = new Wreqr.EventAggregator(); | |
this.commands = new Wreqr.Commands(); |
OlderNewer