Skip to content

Instantly share code, notes, and snippets.

View StephenBrough's full-sized avatar

Stephen Brough StephenBrough

View GitHub Profile
@StephenBrough
StephenBrough / upload_to_cs3060.sh
Created November 24, 2018 16:32
Upload dir to CS3060 server
upload_to_cs3060() {
LOCAL_DIR=$1 # Assignment directory on your local machine
if [ $# -lt 2 ]
then
REMOTE_DIR="$LOCAL_DIR"
else
REMOTE_DIR=$2
fi
USER="Z_<Your UVU ID here, or whatever>"
@StephenBrough
StephenBrough / studio.vmoptions
Created March 2, 2018 15:17
Android Studio VM Options
# custom Android Studio VM options, see https://developer.android.com/studio/intro/studio-config.html
-Xms1024m
-Xmx4096m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=256m
-XX:+UseCompressedOops
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
<application android:label="@string/app_name">

#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.

Here's another site with a cheatsheet