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 PKHUD | |
extension UILoadingView where Self: UIViewController { | |
func hideLoading(){ | |
HUD.hide() | |
} | |
func showLoading(){ | |
HUD.show(.progress) | |
} | |
func showLoadingWithLabel(title:String? = "Waiting", subtitle:String){ |
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
class LoginVC: UIViewController, UILoadingView{ | |
func anyProcessNeedToShowLoadingView(){ | |
showLoadingWithLabel(subtitle: "please wait...") | |
} | |
} |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
//lets to trya strategy pattern! | |
protocol QCallKit{ | |
func dial() | |
func endCall() | |
func accept() |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="horizontal" android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="match_parent"> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:orientation="vertical" android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:padding="@dimen/activity_horizontal_margin"> | |
<TextView | |
android:text="Player 1" | |
android:layout_marginTop="8dp" |
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
{ | |
"inventaris": [ | |
{ | |
"id": 1, | |
"nama": "mobil1aaaaaaa", | |
"jumlah": 3, | |
"stock_minimum": 2, | |
"access": [ | |
"Karyawan", | |
"dosen" |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
import Foundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
enum Response<T> { | |
case succeed(T) | |
case failed(message: String) |
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
/* | |
21 May 2017 | |
created by Arif Akbarul Huda. | |
PENGANTAR | |
Pak Amir adalah orang terpandang didesanya yang memiliki hobi membaca. | |
Dirumahnya tersimpan ratusan koleksi buku. | |
Supaya bermanfaat, Pak Amir membuat perpustakaan pribadi dan warga sekitar boleh meminjam. |
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
/** | |
* Created by omayib on 01/08/17. | |
*/ | |
public class YourApps { | |
public static void main(String[] args) { | |
Person arif = new Person("Arif", 20, 163); | |
Person akbarul = new Person("Akbarul", 25, 160); | |
Person huda = new Person("Huda", 21, 165); | |
//insert the data into customers list. |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
class Todo{ | |
var tempId: UUID? | |
var id : Int | |
var title: String | |
var isCompleted: Bool | |