Author: Michael Zeng
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
[ | |
{ | |
"value": -12, | |
"text": "(GMT -12:00) Eniwetok, Kwajalein" | |
}, | |
{ | |
"value": -11, | |
"text": "(GMT -11:00) Midway Island, Samoa" | |
}, | |
{ |
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
$scope.scanCode = function () { // Scan code | |
$ionicLoading.show({ | |
template: '<ion-spinner></ion-spinner>' | |
}); | |
console.log("scanCode run"); | |
if ($scope.currentlyScanning === true) { | |
$ionicLoading.hide(); | |
return; | |
} | |
else if (ionic.Platform.platforms.indexOf("browser") !== -1) { |
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 MyApp extends Application { | |
@Override | |
public void onCreate() { | |
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf | |
} | |
} |
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.