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 sbt._ | |
| import sbt.Keys._ | |
| object CommonSettingsPlugin extends AutoPlugin { | |
| override def trigger = allRequirements | |
| object autoImport { | |
| implicit class elemAdder(elem: scala.xml.Elem) { | |
| def asModule: sbt.ModuleID = { | |
| (elem \ "groupId").text % (elem \ "artifactId").text % (elem \ "version").text | |
| } |
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
| CREATE TABLE GAMES | |
| AS SELECT * FROM CSVREAD('https://actionfps.com/all/', STRINGDECODE('ID\tJSON'), STRINGDECODE('fieldSeparator=\t')); |
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
| #!/usr/bin/env node | |
| var EventSource = require('eventsource'); | |
| var cfgPath = require('confortable')('stream.json', process.cwd()); | |
| if (!cfgPath) { | |
| throw new Error("Could not load stream.json"); | |
| } | |
| var cfg = require(cfgPath); | |
| var ircStream = require('irc-stream')(cfg.irc.server, cfg.irc.name, { |
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
| (ac_arid,15) | |
| (ac_stellar,17) | |
| (ac_industrial,20) | |
| (ac_douze,20) | |
| (ac_avenue,23) | |
| (ac_lainio,32) | |
| (ac_power,51) | |
| (ac_desert,62) | |
| (ac_outpost,97) | |
| (ac_werk,116) |
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
| case class RetryFuture(times: Int) { | |
| def apply[T](f: => Future[T])(implicit executionContext: ExecutionContext): Future[T] = { | |
| f.toTryFuture.flatMap { | |
| case failure@Failure(_) if times > 0 => | |
| RetryFuture(times - 1)(f) | |
| case other => | |
| Future.fromTry(other) | |
| } | |
| } | |
| } |
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
| val binding = if ( environment.mode == Mode.Dev ) { | |
| List(bind[FullProvider].to[CachedProvider]) | |
| } else Nil |
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
| {"stuff":{"more":["more stuff!",{"thing":"more stuff!"}]}} |
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
| vim /c/Program\ Files\ \(x86\)/sbt/conf/sbtconfig.txt |
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
| Got message ID 62.210.131.155:1999, type server-status: | |
| Server: 62.210.131.155:1999 | |
| Got message ID aura.woop.ac:1999, type current-game-status: | |
| Got message ID 62.210.131.155:4999, type server-status: | |
| Server: 62.210.131.155:4999 | |
| Got message ID aura.woop.ac:4999, type current-game-status: | |
| Got message ID aura.woop.ac:1999, type current-game-status-fragment: | |
| Got message ID aura.woop.ac:4999, type current-game-status-fragment: | |
| Got message ID 104.236.35.55:1111, type server-status: | |
| Server: 104.236.35.55:1111 |
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
| https://github.com/scala/async |