This file contains hidden or 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; | |
| import java.util.Calendar; | |
| class Movie { | |
| public static void main(String args[]) { | |
| Scanner reader = new Scanner(System.in); | |
| Integer currentYear = Calendar.getInstance().get(Calendar.YEAR); | |
| System.out.print("Masukan nama anda : "); |
This file contains hidden or 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; | |
| class MakeSquare { | |
| public static void main(String args[]) { | |
| Scanner reader = new Scanner(System.in); | |
| int a, b, c; | |
| System.out.print("Masukan angka = "); |
This file contains hidden or 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 Number { | |
| public static void main(String[] args) { | |
| Scanner reader = new Scanner(System.in); | |
| System.out.print("Masukkan angka pertama: "); | |
| long a = Integer.parseInt(reader.nextLine()); | |
| System.out.print("Masukkan angka kedua: "); | |
| long b = Integer.parseInt(reader.nextLine()); | |
| System.out.println("Bilangan terbesar: " + Math.max(a, b)); |
This file contains hidden or 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.Random; | |
| import java.util.Scanner; | |
| public class RandomExample { | |
| public static void main(String[] args) { | |
| Scanner reader = new Scanner(System.in); | |
| int random; | |
| System.out.print("Masukkan bilangan a: "); | |
| int a = Integer.parseInt(reader.nextLine()); | |
| System.out.print("Masukkan bilangan b: "); |
This file contains hidden or 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
| { | |
| "data": [ | |
| { | |
| "id": 1, | |
| "name": "Ilham Arrouf", | |
| "username": "ilhamarrouf", | |
| "email": "ilham.arrouf@gmail.com" | |
| }, | |
| { | |
| "id": 2, |
This file contains hidden or 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| use Mailgun\Mailgun; | |
| class MY_Email extends CI_Email | |
| { | |
| // Replace the below with your Mailgun key and domain | |
| var $_mailgun_key = 'key-XXX'; | |
| var $_mailgun_domain = 'XXX.mailgun.org'; |
This file contains hidden or 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 | |
| require __DIR__ . '/vendor/autoload.php'; | |
| $dsn = 'mysql:dbname=db1;host=127.0.0.1'; | |
| $user = 'root'; | |
| $password = '(disensor)'; | |
| try { | |
| $dbh = new PDO($dsn, $user, $password); |
This file contains hidden or 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
| { | |
| "auto_indent": true, | |
| "auto_match_enabled": true, | |
| "detect_indentation": true, | |
| "draw_centered": false, | |
| "font_size": 9, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], |
This file contains hidden or 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
| config/__pycache__/ | |
| instance/__pycache__/ | |
| newsapi/home/__pycache__/ | |
| newsapi/news/__pycache__/ | |
| newsapi/news_status/__pycache__/ | |
| newsapi/news_topic/__pycache__/ | |
| .vscode/ | |
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ |
This file contains hidden or 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
| -- MySQL Script generated by MySQL Workbench | |
| -- Sat Feb 3 14:56:59 2018 | |
| -- Model: New Model Version: 1.0 | |
| -- MySQL Workbench Forward Engineering | |
| SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
| SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
| SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; | |
| -- ----------------------------------------------------- |