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
| // | |
| // Collect and print tasks execute times | |
| // init: addExecTimeLogger 50 | |
| // | |
| ext.addExecTimeLogger = { minExecutionTime -> | |
| gradle.addListener new TaskExecTimeLogger(minExecutionTime) | |
| } | |
| public class TaskExecTimeLogger implements TaskExecutionListener, BuildListener { | |
| private Clock clock |
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 android.app.Activity; | |
| import android.support.annotation.IdRes; | |
| import android.view.View; | |
| import java.lang.annotation.Annotation; | |
| import java.lang.annotation.ElementType; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| import java.lang.annotation.Target; | |
| import java.lang.reflect.Field; |
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
| /* | |
| Copyright 2016 Ferenc Boldog | |
| Copyright 2012 Viktor Klang | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.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
| diff --git a/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt b/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt | |
| index 3d23e13..70317f6 100644 | |
| --- a/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt | |
| +++ b/compiler/src/main/kotlin/android/databinding/tool/ext/list_ext.kt | |
| @@ -31,13 +31,13 @@ public fun List<String>.joinToCamelCaseAsVar(): String = when(size) { | |
| else -> get(0).toCamelCaseAsVar() + drop(1).joinToCamelCase() | |
| } | |
| -public fun Array<String>.joinToCamelCase(): String = when(size()) { | |
| +public fun Array<String>.joinToCamelCase(): String = when(size) { |
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
| // usage: | |
| // buildscript { | |
| // apply from: 'https://git.io/kotlinEAP' | |
| // ... | |
| // } | |
| // and call kotlinEAP(it) in repositories | |
| ext.kotlinEAP = { RepositoryHandler handler -> | |
| handler.maven { | |
| url 'https://dl.bintray.com/kotlin/kotlin-eap' |
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 hu.akarnokd.comparison | |
| import org.openjdk.jmh.annotations.* | |
| import java.util.* | |
| import java.util.concurrent.TimeUnit | |
| fun main(args: Array<String>) { | |
| val s = ShakespearePlaysScrabbleWithKotlin() | |
| s.init() | |
| System.out.println(s.measureThroughput()) |
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 fboldog.chrometabsaver | |
| import android.content.Intent | |
| import android.support.test.InstrumentationRegistry | |
| import android.support.test.InstrumentationRegistry.getInstrumentation | |
| import android.support.test.uiautomator.UiDevice | |
| import org.junit.Test | |
| import android.support.test.runner.AndroidJUnit4 | |
| import android.support.test.uiautomator.UiSelector | |
| import android.util.Log |
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
| uint wang_hash(uint seed) | |
| { | |
| seed = (seed ^ 61) ^ (seed >> 16); | |
| seed *= 9; | |
| seed = seed ^ (seed >> 4); | |
| seed *= 0x27d4eb2d; | |
| seed = seed ^ (seed >> 15); | |
| return seed; | |
| } | |
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
| using System; | |
| using System.Runtime.InteropServices; | |
| namespace ATIDisplay | |
| { | |
| static class Kernel32 | |
| { |
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
| using System; | |
| using System.Runtime.InteropServices; | |
| namespace ATIDisplay | |
| { | |
| static class Kernel32 | |
| { |
OlderNewer