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
// test api, show to console https://api-portal-jatim.pisdev.my.id/api/users | |
// jquery request | |
$.ajax({ | |
url: 'https://klinikhoaks.jatimprov.go.id/api/mobile/getjmlhoaksytd', | |
type: 'GET', | |
success: function(response) { | |
console.log(response); | |
}, | |
error: function(xhr) { |
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
GRANT USAGE ON SCHEMA "user" TO username; | |
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA "user" TO username; | |
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA "user" TO username; | |
GRANT USAGE ON ALL SEQUENCES IN SCHEMA "user" TO username; |
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
SELECT | |
terminal.name as terminal, | |
city.name as kota, | |
COALESCE(count( | |
CASE | |
WHEN r.is_arrival = true AND r.tvehicle_type_id = 4 THEN r.id | |
ELSE null | |
END), 0::bigint) AS ar_vehicle_akap, | |
COALESCE(sum( | |
CASE |
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
SELECT | |
terminal.name as terminal, | |
city.name as kota, | |
COALESCE(count( | |
CASE | |
WHEN r.is_arrival = true AND r.tvehicle_type_id = 4 THEN r.id | |
ELSE null | |
END), 0::bigint) AS ar_vehicle_akap, | |
COALESCE(sum( | |
CASE |
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
SELECT | |
terminal.name as terminal, | |
city.name as kota, | |
COALESCE(count( | |
CASE | |
WHEN r.is_arrival = true AND r.tvehicle_type_id = 4 THEN r.id | |
ELSE null | |
END), 0::bigint) AS ar_vehicle_akap, | |
COALESCE(sum( | |
CASE |
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
import java.io.*; | |
import java.util.*; | |
public class Solution { | |
public static String formatRupiah(int nominal) { | |
String strNominal = String.valueOf(nominal); | |
String strNominalFormatted = ""; | |
int counter = 0; | |
for (int i = strNominal.length() - 1; i >= 0; i--) { | |
strNominalFormatted = strNominal.charAt(i) + strNominalFormatted; |
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
import java.util.Scanner; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
String kelas = scanner.nextLine(); | |
String nama = scanner.nextLine(); | |
System.out.println("Nama : " + nama); |
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
import java.util.Scanner; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int jumlahOrang = scanner.nextInt(); | |
scanner.nextLine(); | |
String[][] jadwalTV = new String[3][3]; |
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
import java.util.Scanner; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
String kalimat = scanner.nextLine(); | |
String hasil = removeVowels(kalimat); | |
System.out.println(hasil); |
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
import java.util.*; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int batasMaksimal = scanner.nextInt(); | |
scanner.nextLine(); | |
String kalimat = scanner.nextLine(); |
NewerOlder