windows
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
| /** | |
| * An [Observer] for [Event]s, simplifying the pattern of checking if the [Event]'s content has | |
| * already been handled. | |
| * | |
| * [onEventUnhandledContent] is *only* called if the [Event]'s contents has not been handled. | |
| */ | |
| class EventObserver<T>(private val onEventUnhandledContent: (T) -> Unit) : Observer<Event<T>> { | |
| override fun onChanged(event: Event<T>?) { | |
| event?.getContentIfNotHandled()?.let { value -> | |
| onEventUnhandledContent(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
| /* | |
| * Recommend run with node v8.9.x or higher version | |
| * npm install lodash crypto-js request-promise request | |
| * node hack.js | |
| */ | |
| const version = 5 // the version of t1t | |
| const score = 370 // the score you wanna get | |
| const playTimeSeconds = score * 0.01 // simulate the playing time (seconds) |
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 com.fernferret.steambot.web; | |
| import org.openid4java.association.AssociationException; | |
| import org.openid4java.consumer.ConsumerException; | |
| import org.openid4java.consumer.ConsumerManager; | |
| import org.openid4java.consumer.VerificationResult; | |
| import org.openid4java.discovery.DiscoveryException; | |
| import org.openid4java.discovery.DiscoveryInformation; | |
| import org.openid4java.discovery.Identifier; | |
| import org.openid4java.message.AuthRequest; |