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
| from flask import Flask | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def hello(): | |
| return 'Hello Flask' | |
| if __name__ =="__main__": | |
| app.run(debug=True) |
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
| public class Main { | |
| public static void main(String[] args) { | |
| System.out.println("Hello World"); | |
| } | |
| } |
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
| @startuml | |
| class User { | |
| - name : String | |
| - age : Integer | |
| - address : String | |
| .. Simple Setter .. | |
| setName(name : String) :void | |
| setAge(age : String) : void |
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
| package org.dimas.learn; | |
| public class User { | |
| private String name; | |
| private Integer age; | |
| private String address; | |
| public String getName() { | |
| return name; |
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
| package org.dimas.learn; | |
| public class Main { | |
| public static void main(String[] args) { | |
| // write your code here | |
| // user1 instance of user | |
| User user1 = new User(); | |
| user1.setName("John Doe"); | |
| user1.setAge(30); |
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
| package org.dimas.learn; | |
| import java.time.LocalDate; | |
| import java.time.LocalDateTime; | |
| import java.time.LocalTime; | |
| import java.time.format.DateTimeFormatter; | |
| public class LearnLocaleDate { | |
| public static void main(String[] args) { | |
| // show current date |
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 | |
| namespace App\Http\Controllers; | |
| use App\Models\Siswa; | |
| use Illuminate\Http\Request; | |
| class SiswaResourceController extends Controller | |
| { | |
| /** |
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 | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Siswa extends Model | |
| { | |
| use HasFactory; |
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
| @extends('siswa.layout') | |
| @section('content') | |
| <h3> Ini Halaman Siswa </h3> | |
| <a class="btn btn-success" href="{{ route('siswa.create')}}">Buat Baru</a> | |
| <table class="table table-hover table-dark"> | |
| <tr> | |
| <th>No</th> | |
| <th>Nama</th> |
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
| @extends('siswa.layout') | |
| @section('content') | |
| <div class="row"> | |
| <div class="col-lg-12 margin-tb"> | |
| <div> | |
| <h2>Add New Student</h2> | |
| </div> | |
| <div> | |
| <a class="btn btn-primary" href="{{ route('siswa.index') }}"> Back</a> |
OlderNewer