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
<?php | |
class Test | |
{ | |
private $log; | |
private $loc; | |
public function __construct(){} | |
public function getLog(){} | |
public function setLog(){} | |
public function getLoc(){} | |
public function setLoc(){} |
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
<?php | |
/** | |
* maintain.... | |
* pages for GET request | |
* | |
* @author rifki | |
*/ | |
class SayHello |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 500px } | |
body { height: 500px; margin: 0; padding: 0 } | |
#map_canvas { height: 100% } | |
</style> | |
<script type="text/javascript" |
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
<?php | |
/** | |
* Copyright @author Muhamad Rifki <rifki@rifkilabs.net> | |
* Deskripsi : http://php.net/manual/en/reserved.variables.server.php | |
*/ | |
abstract class EnvironmentAbstract | |
{ | |
/** |
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
<?php | |
$doublyList = new SplQueue(); | |
if ($doublyList->isEmpty()) { | |
$doublyList->enqueue('PHP'); | |
$doublyList->enqueue('Java'); | |
$doublyList->enqueue('Python'); | |
$doublyList->enqueue('Ruby'); | |
} |
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
<?php | |
class SuzukiSatria120R | |
{ | |
protected static $color = 'black'; | |
protected static $topSpeed = 120; | |
protected static $type = 'Satria 120 R'; | |
protected static $tax = '2tax'; | |
public static function getColor() |
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
//Ubah AboutViewController.m jadi seperti berikut: | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Do any additional setup after loading the view. | |
self.view.backgroundColor = [UIColor greenColor]; | |
} |
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
Issue: | |
https://github.com/bcit-ci/CodeIgniter/issues/1351 | |
Config: | |
Global config(application/config/config.php) | |
code: | |
$db['default']['save_queries'] = FALSE; | |
After database initialization: | |
$this->db->save_queries = FALSE; |
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
########################## | |
Dump Table | |
########################## | |
mysqldump -hhostnya -uusernya -p namadbnya tablenya1 tablenya2 > /path/to/hasilnya.sql | |
########################## | |
Dump Database | |
########################## | |
mysqldump -hmyhostname -uusernya -p namadbnya > targetfilenya.sql |
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
# show info | |
brew info nginx | |
# start and stop | |
nginx.start | |
nginx.stop | |
nginx.restart | |
# logs | |
nginx.logs.access | |
nginx.logs.default.access |
OlderNewer