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
+ InstagramApi | |
+ Connection | |
+ Connection.php | |
+ Services | |
+ Users | |
+ Relationships | |
+ Media | |
+ Comments | |
+ Likes | |
+ Tags |
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 | |
$pwd = '1!'; | |
function checkPassword($pwd, &$errors) { | |
$errors_init = $errors; | |
if (strlen($pwd) < 8) { | |
$errors[] = "Password too short!"; | |
} |
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 | |
$a = '.'; | |
$space = ' '; | |
$ulang = 20; | |
for ($i = 1; $i < $ulang; $i+= 2) { | |
for ($j = ($ulang-$i)/2; $j >= 0; $j--) { | |
echo $space; | |
} |
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 JajarGenjang | |
{ | |
private $panjang = 18; | |
private $increment = 1; | |
private function createLine() | |
{ |
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 BujurSangkar | |
{ | |
private $sisi = 7; | |
private $reserved = array(); | |
public function __construct() | |
{ | |
for ($i = 1; $i <= $this->sisi * $this->sisi; $i++) { |
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
->add('donatur', ChoiceType::class, array( | |
'choices' => array(), | |
'label' => 'label.domain.donatur', | |
'attr' => array( | |
'class' => 'form-control autocomplete donatur', | |
), | |
)) |
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
[BOTH] | |
sudo yum check-update | |
sudo yum update | |
[HAProxy] | |
//Load Balancer ga butuh service ini | |
sudo service sendmail stop | |
sudo chkconfig sendmail off | |
sudo chkconfig sendmail --del | |
//Install Load Balancer |
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 DeretBilangan | |
{ | |
private function isPrima($number) | |
{ | |
$flag = 0; | |
for ($i = 1; $i <= $number; $i++) { | |
if (0 === $number % $i) { | |
$flag++; |
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 Umur | |
{ | |
private function resolveUmurFatih($umurAmel) | |
{ | |
return $umurAmel * 0.5; | |
} | |
private function resolveUmurYoga($umurAmel) |
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 Segitiga | |
{ | |
private $limit; | |
public function setLimit($limit) | |
{ | |
$this->limit = $limit; | |
} |
OlderNewer