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
table base address: 0x5e300000 | |
table version: 0x450005 | |
Command 0x32(50) / table 0: [0, 8, 0, 0, 0] | |
Command 0x32(50) / table 1: [1, 8, 0, 0, 0] | |
Command 0x32(50) / table 2: [2, 8, 0, 0, 0] | |
Command 0x32(50) / table 3: [3, 8, 0, 0, 0] | |
Command 0x32(50) / table 4: [4, 8, 0, 0, 0] | |
Command 0x32(50) / table 5: [5, 8, 0, 0, 0] | |
Command 0x32(50) / table 6: [6, 8, 0, 0, 0] | |
Command 0x32(50) / table 7: [7, 8, 0, 0, 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
// You can have shared configuration for modules | |
// For example, pure kotlin modules can shared following kotlin-library-bootstrap.gradle | |
//### | |
apply plugin: 'java-library' | |
apply plugin: 'kotlin' | |
sourceCompatibility = JavaVersion.VERSION_1_8 | |
targetCompatibility = JavaVersion.VERSION_1_8 |
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 org.gradle.api.DefaultTask | |
import org.gradle.api.artifacts.Configuration | |
import org.gradle.api.attributes.Attribute | |
import org.gradle.api.model.ObjectFactory | |
import org.gradle.api.tasks.* | |
import org.gradle.kotlin.dsl.setProperty | |
import java.io.File | |
import javax.inject.Inject | |
/** |
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
class MyClass(val a: Int, val b: Int, ... ) { | |
override fun equals(other: Any?) = | |
other is MyClass && compareValuesBy(this, other, MyClass::a, MyClass::b, ...) == 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
// Assuming Kotlin plugin is applied... | |
// Run as: ./gradlew kotlinRepl --console plain --no-daemon | |
val kotlinRepl by tasks.creating { | |
dependsOn("assemble") | |
doFirst { | |
val buildscriptClasspath = rootProject.buildscript.configurations["classpath"] | |
val embeddedableCompiler = buildscriptClasspath | |
.resolvedConfiguration |
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
Here's a correct table of percentages to hex values. E.g. for 50% white you'd use #80FFFFFF. | |
100% — FF | |
95% — F2 | |
90% — E6 | |
85% — D9 | |
80% — CC | |
75% — BF | |
70% — B3 | |
65% — A6 |
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
#!/bin/sh | |
find . -name *.java -print | xargs sed -i 's/old\.package\.name/new\.package\.name/g' |
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
find . -type f -exec sed -i 's/\x0d//g' {} \+ |