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
    
  
  
    
  | apply plugin: 'java' | |
| sourceSets { | |
| main { | |
| java { | |
| srcDir 'src/main/java' | |
| } | |
| } | |
| unitTest { | |
| java.srcDir file('src/test/java') | 
  
    
      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 IntentExtraString | |
| { | |
| operator fun getValue(activity: Activity, property: KProperty<*>): String = | |
| activity.intent.getStringExtra(property.name) | |
| operator fun setValue(activity: Activity, property: KProperty<*>, value: String) | |
| { | |
| activity.intent.putExtra(property.name, value) | |
| } | |
| } | 
  
    
      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 RouteHelper(private val router: Router) : BasicValueHelper() | |
| { | |
| override fun execute(options: Options?) | |
| { | |
| options?.parameters?.get(0)?.let { routeName -> | |
| val route = router.uriFor(routeName.toString(), mutableMapOf()) | |
| append(options, route) | |
| } | |
| } | |
| } | 
  
    
      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 RouteHelper(private val router: Router) : BasicValueHelper() | |
| { | |
| override fun execute(options: Options?) | |
| { | |
| if( options != null ) | |
| { | |
| val parameters = options.parameters | |
| if( parameters != null && parameters.isNotEmpty() ) | |
| { | |
| val routeName = parameters[0] as 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
    
  
  
    
  | body:before { | |
| background: url( {IMAGE} ) no-repeat center center fixed; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; | |
| content: ""; | |
| display: block; | 
  
    
      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 Optimus(private val prime: Int, | |
| private val randomNumber: Int, | |
| private val modInverse: Int = ModInverse(prime)) | |
| { | |
| init | |
| { | |
| if (!isProbablyPrime(prime)) throw IllegalArgumentException("$prime is not a prime number") | |
| } | |
| fun encode(n: Int): Int = n * this.prime and MAX_INT xor this.randomNumber | 
  
    
      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
    
  
  
    
  | public class Movie { | |
| private String name; | |
| private String studio; | |
| private float rating; | |
| public Movie(String name, String studio, float rating) { | |
| this.name = name; | |
| this.studio = studio; | |
| this.rating = rating; | 
  
    
      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 Movie(var name: String, var studio: String, var rating: Float) | 
  
    
      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
    
  
  
    
  | /** | |
| * Eases the Fragment.newInstance ceremony by marking the fragment's args with this delegate | |
| * Just write the property in newInstance and read it like any other property after the fragment has been created | |
| * | |
| * Inspired by Adam Powell, he mentioned it during his IO/17 talk about Kotlin | |
| */ | |
| class Argument<T : Any> : kotlin.properties.ReadWriteProperty<Fragment, T> | |
| { | |
| var value: T? = null | 
  
    
      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
    
  
  
    
  | #################### | |
| # Map_00.gd | |
| #################### | |
| func _ready(): | |
| create_players(Network.players) | |
| func create_players(players): | |
| for player_id in players: | |
| var player = players[player_id] | |
| match player.type: | 
OlderNewer