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
-- CONFIGURATION | |
property startTime : "05:50 AM" | |
property endTime : "6:30 AM" | |
-- BLANKS | |
property blankX : 486 | |
property blankY : 377 | |
property inventoryX : 1360 | |
property inventoryY : 420 | |
-- SD |
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.Plugin | |
import org.gradle.api.Project | |
import org.gradle.kotlin.dsl.dependencies | |
class DetektPlugin : Plugin<Project> { | |
override fun apply(project: Project) { | |
project.dependencies { | |
add("detektPlugins", "io.gitlab.arturbosch.detekt:detekt-formatting:${Versions.detekt}") | |
add("detektPlugins", "io.gitlab.arturbosch.detekt:detekt-cli:${Versions.detekt}") | |
// Add any other Detekt dependencies you need here |
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
// A tool to convert OpenTibia maps to https://github.com/peonso/opentibia_sprite_pack | |
// by Peonso | |
// dependencies NodeJS and https://github.com/Inconcessus/OTBM2JSON | |
// node --max-old-space-size=4096 convert.js | |
var start = Date.now(); | |
const otbm2json = require("./OTBM2JSON/otbm2json"); | |
const OLD_MUDWALLS = [356,357,358,359,360,361,362,363,364,365,366,367,371,372,373,374,375,376,377,378,379,380,381,382]; | |
const OLD_MUDTILE = 351; |
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
# Flow vs LiveData | |
### 1. Importe as dependências necessárias | |
Para usar o Flow, você precisa adicionar a seguinte dependência ao seu arquivo build.gradle | |
```gradle | |
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.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
import org.gradle.api.DefaultTask | |
import org.gradle.api.Plugin | |
import org.gradle.api.Project | |
import org.gradle.api.tasks.TaskAction | |
import java.io.File | |
import java.io.FileReader | |
import java.util.regex.Pattern | |
class JavaDocToMarkdownPlugin : Plugin<Project> { | |
override fun apply(project: Project) { |
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.Plugin | |
import org.gradle.api.Project | |
import org.gradle.kotlin.dsl.getByType | |
import org.gradle.kotlin.dsl.withType | |
import org.jetbrains.kotlin.gradle.tasks.KtLint | |
class KlintPlugin : Plugin<Project> { | |
override fun apply(project: Project) { | |
project.plugins.apply("org.jetbrains.kotlin.android") | |
project.plugins.apply("org.jetbrains.kotlin.kapt") |