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
<Window x:Class="TheCompany.MainWindow" | |
Title="MainWindow" Height="710" Width="470"> | |
<Grid Margin="0,0,2,-3"> | |
<ListBox x:Name="listBox" HorizontalAlignment="Left" Height="217" Margin="58,328,0,0" VerticalAlignment="Top" Width="344"> | |
<ListBox.ItemTemplate> | |
<DataTemplate> | |
<Grid Margin="0,2"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="100" /> | |
<ColumnDefinition Width="75" /> |
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
TheGunListener theGunListener = new TheGunListener(); | |
//shotGun is take out one projectiles per shoot | |
Gun shotGun = new ShotGun("S12K", "Brown"); | |
shotGun.addProjectile(3); | |
shotGun.setOnShootListener(theGunListener); | |
//Deagle is take out two projectiles in one shoot | |
Gun deagle = new Deagle("Deagle", "Red"); | |
deagle.addProjectile(3); | |
deagle.setOnShootListener(theGunListener); |
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
class PrivacyPolicy : AppCompatActivity() { | |
val privacyPolicyUrl = "http://hepicar.com/privacy_policy.html" | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_privacy_policy) | |
title = "Privacy Policy" | |
val webViewClient = object :WebViewClient(){ |
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
function myFunction() { | |
String.prototype.format = function() { | |
a = this; | |
for (k in arguments) { | |
a = a.replace("{" + k + "}", arguments[k]) | |
} | |
return a | |
}; | |
var weekday = new Array(7); | |
weekday[0] = "Minggu"; |
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
apply plugin: 'com.android.library' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'maven-publish' | |
publishing { | |
publications { | |
library(MavenPublication) { | |
// Don't forget to change these | |
groupId 'com.hepicar' | |
artifactId 'sdk' | |
version '0.0.1' |
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
package com.hepicar.smsverification; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.telephony.SmsManager; | |
import android.telephony.SmsMessage; | |
import android.util.Log; | |
import android.widget.Toast; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.hepicar.smsverification"> | |
<uses-permission android:name="android.permission.RECEIVE_SMS"/> | |
<uses-permission android:name="android.permission.READ_SMS" /> | |
<uses-permission android:name="android.permission.SEND_SMS"/> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" |
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
package com.hepicar.smsverification; | |
import android.Manifest; | |
import android.content.pm.PackageManager; | |
import android.support.v4.app.ActivityCompat; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class MainActivity extends AppCompatActivity { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:background="#11bcff" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="id.technomotion.simpleweatherapps.MainActivity"> | |
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
package com.example.presentasi.loginpage; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; |