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 com.squareup.javapoet.AnnotationSpec; | |
import com.squareup.javapoet.ClassName; | |
import com.squareup.javapoet.CodeBlock; | |
import com.squareup.javapoet.TypeSpec; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.Locale; | |
import java.util.TimeZone; | |
import javax.lang.model.SourceVersion; |
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 MarriageProblemSolver.Person | |
class MarriageProblemSolver { | |
class Person(val name: String) { | |
internal lateinit var preferences: List<Person> | |
internal var proposals = 0 | |
var match: Person? = null | |
internal set | |
// Do a lateinit to allow the circular dependency of people with their preferences of people. |
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
-- Disable this flag to remove the glow particle around the flashlight's lens. | |
local enableGlow = true; | |
local glowParticle; | |
local lightTable = { | |
classname = "light_spot", | |
targetname = "light" .. thisEntity:entindex(), | |
enabled = 0, | |
brightness = "1.5", | |
range = "400", |
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 android.text.InputFilter | |
import android.text.Spanned | |
class RangeInputFilter(private val min: Int, private val max: Int) : InputFilter { | |
override fun filter( | |
source: CharSequence, | |
start: Int, | |
end: Int, | |
dest: Spanned, | |
dstart: Int, |
OlderNewer