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
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; | |
public class StdInputReader { | |
public static void main(String[] args) { | |
for(long l : readUnknownLengthLongs()){ | |
System.out.println(l); |
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
#include <stdio.h> | |
#include <opencv\cv.h> | |
#include <opencv\highgui.h> | |
int main(int argc, char* argv[]) | |
{ | |
cv::Mat img = cv::imread("E:\\stuff\\articles\\Test Articles\\article_25.jpg", | |
CV_LOAD_IMAGE_UNCHANGED); | |
if (img.empty()) |
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
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.3.3' | |
classpath 'io.realm:realm-gradle-plugin:3.5.0' | |
} |
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
package com.ruwanka.realmdbinspect; | |
import android.app.Application; | |
import com.facebook.stetho.Stetho; | |
import com.uphyca.stetho_realm.RealmInspectorModulesProvider; | |
import io.realm.Realm; | |
public class RealmDbApp extends Application { |
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
package com.ruwanka.realmdbinspect; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import com.ruwanka.realmdbinspect.model.Address; | |
import com.ruwanka.realmdbinspect.model.Person; | |
import io.realm.Realm; |
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
data class Student(var name: String, var age: Int, val gender: String) |
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
package com.ruwanka.io; | |
public class File { | |
} |
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
package com.ruwanka.io; | |
public class Program { | |
public static void main(String[] args) { | |
File myFile = new File(); | |
java.io.File javaFile = new java.io.File("test.txt"); | |
} | |
} |
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
import java.io.File | |
import com.ruwanka.io.File as MyFile | |
fun main(args: Array<String>) { | |
var myFile: MyFile = MyFile() | |
var javaFile: File = File("test.txt"); | |
} |
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
fun main(args: Array<String>) { | |
println("this is cool".toSentenceCase()) | |
} | |
fun String.toSentenceCase(): String { | |
return this.substring(0, 1).toUpperCase().plus(this.substring(1)) | |
} |
OlderNewer