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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content="" /> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<title>Errors</title> |
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
Process: com.livepop.android.dev, PID: 10993 | |
java.lang.RuntimeException: Unable to resume activity {com.livepop.android.dev/com.livepop.android.ui.activities.IdolLiveViewActivity}: java.lang.RuntimeException: Fail to connect to camera service | |
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3069) | |
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3098) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350) | |
at android.os.Handler.dispatchMessage(Handler.java:102) | |
at android.os.Looper.loop(Looper.java:14 |
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
public class StringAppend | |
{ | |
public delegate void StringOverflow(object sender, int Overflow); | |
public event StringOverflow StringOverflow_EventHandle; | |
} | |
class Program |
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
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); |
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
fun RecyclerView.onLoadMoreListener(onLoadMore: (Int) -> Unit) { | |
layoutManager?.let { | |
this.addOnScrollListener(object : RecyclerView.OnScrollListener() { | |
var previousTotal = 0 | |
var loading = true | |
var visibleThreshold = 5 | |
var firstVisibleItem = 0 | |
var visibleItemCount = 0 | |
var totalItemCount = 0 |
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
fun factorial(num: Double): Double { | |
when (num) { | |
1.0 -> | |
return num | |
else -> | |
return factorial(num - 1) * num | |
} | |
} |
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
fun myfunc(num : Int = 20): Int { | |
if(num == 0){ | |
return 0 | |
} else { | |
return myfunc() | |
} | |
} |
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
fun notaTailRecursionFunction(num : Int = 20): Int { | |
if(num == 0){ | |
return 0 | |
} else { | |
return notaTailRecursionFunction() + 10 | |
} | |
} |
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
private fun factorial(num: Double): Double { | |
return factorial(num, 1.0) | |
} | |
fun factorial(num: Double, result: Double): Double { | |
when (num) { | |
0.0 -> | |
return result | |
else -> | |
return factorial(num-1, num * result) |
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
private fun factorial(num: Double): Double { | |
return factorial(num, 1.0) | |
} | |
tailrec fun factorial(num: Double, result: Double): Double { | |
when (num) { | |
0.0 -> | |
return result | |
else -> | |
return factorial(num-1, num * result) |
OlderNewer