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
type LoadTester struct { | |
duration time.Duration | |
initialRPS int | |
maxErrorRate float64 | |
maxOnGoingReq int64 | |
rpsAdjustPeriod time.Duration | |
job func() error | |
// no need to update |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"syscall" | |
) | |
func main() { |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
"github.com/gomodule/redigo/redis" | |
) |
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> | |
<title></title> | |
<style type="text/css"> | |
#primary_nav_wrap | |
{ | |
margin-top:15px; | |
margin-left:20px; | |
display:none; |
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
string = "" | |
x = 5 | |
bar = x | |
# Looping Baris | |
while bar >= 0: | |
# Looping Kolom Spasi Kosong | |
kol = bar | |
while kol > 0: | |
string = string + " " |
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 | |
//mendefinisikan operan 1 dan 2 | |
$operand_1 = array(array(1,3,4),array(4,7,8),array(3,1,3)); | |
$operand_2 = array(array(4,6,9),array(5,2,0),array(3,6,7)); | |
for ($baris=0; $baris < count($operand_1); $baris++) { | |
for ($kolom=0; $kolom < count($operand_1); $kolom++) { | |
echo $operand_1[$baris][$kolom]." "; | |
} | |
echo PHP_EOL; |
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=10; | |
for ($i=1; $i < $a-1; $i++) { | |
for ($j=($a-$i); $j > 1 ; $j--) { | |
echo " "; | |
} | |
for ($k=1; $k < $i-1; $k++) { | |
echo "*"; | |
} | |
for ($l=1; $l < $i-2 ; $l++) { |