Skip to content

Instantly share code, notes, and snippets.

View PembaTamang's full-sized avatar
😀

Pemba Tamang PembaTamang

😀
  • Lebong, Darjeeling, India
  • X @P3mba
View GitHub Profile
@smuldr
smuldr / activity_main.xml
Created June 15, 2015 08:25
Android NavigationView below Toolbar
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
@pchrysa
pchrysa / SumOfDigits.kt
Created August 2, 2017 21:29
Sum digits of a given number in Kotlin
/*
In mathematics, the digit sum of a given integer is the sum of all its digits (e.g.
the digit sum of 84001 is calculated as 8+4+0+0+1 = 13).
Write a function that will get an integer and will return the digit sum for that integer.
*/
fun main(args: Array<String>) {
sumOfDigits("84001");
}