Buatlah program yang melakukan pengurutan N (2≤N≤1000) buah bilangan seperti pada contoh kasus di bawah ini.
- Baris pertama berisi satu buah bilangan N.
<?php | |
namespace App\Libraries; | |
use App\Entities\User; | |
use App\Entities\Purchase; | |
use Config\Services; | |
use WpOrg\Requests\Requests; | |
/** |
#!/usr/bin/expect -f | |
# Check if the correct number of arguments is provided | |
if { $argc != 2 } { | |
puts "Usage: $argv0 <npx_command_arguments> <admin_email>" | |
exit 1 | |
} | |
# Set timeout for expect | |
set timeout -1 |
I recommend to spawn a Virtualized Ubuntu. I'm coming from M1 Macbook but I hate building from Podman.
I run with UTM on QEMU virtualization, with 6 CPU, 6 GB RAM and 100 GB disk space. It works for me.
cd ~/Document
#!/bin/bash | |
while [ `passenger-config list-instances --json | jq length` -ne 1 ]; do | |
echo "Waiting until NGINX done reloading..." | |
sleep 1 | |
done | |
sudo -n -- passenger-config reopen-logs &> /dev/null || true | |
passenger-config restart-app ~ --ignore-app-not-running |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Welcome!</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
body { | |
text-align: center; | |
font-family: "Segoe UI", Roboto, sans-serif; |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
include /usr/share/nginx/modules/*.conf; | |
events { | |
worker_connections 1024; | |
} |
<!-- This is HTML comment, but works well anyway --> | |
<!-- See http://wellosoft.net/blog/en/2017/hello-world.html for preview --> | |
## The playground | |
#### Not yet | |
###### Yet ... | |
*** | |
<br> | |
Now, you may see an `inline code` or _italic_ or **bold** or ~~striking~~ texts. |