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
_internalTickerTask = new Task(InternalTicker, TaskCreationOptions.LongRunning); | |
_internalTickerTask.Start(); | |
private void InternalTicker() | |
{ | |
while (IsAutomaticallyUpdating) | |
{ | |
if (!(_internalClock.ElapsedMilliseconds >= _ticksIntervalMilliseconds)) | |
continue; |
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
require 'date' | |
require 'net/http' | |
# Get arguments from command line | |
if ARGV.count < 4 | |
puts 'tribalwars world x y radius' | |
return | |
end | |
world = ARGV[0] | |
x = ARGV[1] |
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
// The main game class, instantiated from Main, takes a scheduler and a display window | |
// The scheduler supplied should be where anything asynchronous should be executed for | |
// the game, or any kind of repeatable task. Example - game tick. | |
// The display window actually displays stuff. | |
// I was hoping for the injected Scheduler to potentially run on the current thread. | |
// At the point of inception the Game will have been created on the Main thread, thus, | |
// the Scheduler would run on the Main thread and prevent the program from immediately | |
// returning. |
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
/** | |
* A handler specifically for LwjglExceptions. | |
* This should be injected via Ioc into a LwjglWindow. | |
* | |
* Any instance of an exception occuring in Lwjgl should cause the enclosing program to fail. | |
* @author Dan | |
* | |
*/ | |
class LwjglExceptionHandler implements ExceptionHandler { | |
private final Logger logger; |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
revision: { | |
options: { | |
short: true, | |
ref: 'HEAD', | |
property: 'meta.revision' | |
} | |
}, | |
karma: { |
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
<responsive> | |
<div ng-switch='screenSize'> | |
<div ng-switch-when='small'> | |
<h1>Small Screen</h1> | |
</div> | |
<div ng-switch-when='medium'> | |
<h1>Medium Screen</h1> | |
</div> | |
<div ng-switch-when='large'> | |
<h1>Large Screen</h1> |
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
interface OverwolfStatic { | |
utils: OverwolfUtils; | |
profile: OverwolfProfile; | |
extensions: OverwolfExtensions; | |
games: OverwolfGames; | |
media: OverwolfMedia; | |
settings: OverwolfSettings; | |
streaming: OverwolfStreaming; | |
windows: OverwolfWindows; |
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
;(function(window, Promise, exports) { | |
'use strict'; | |
var types = {}; | |
/** | |
* Register a type with the injector. | |
* @param {String} name The name of the type to register. | |
* @param {Function} constructor The constructor for the injector. Constructors can be regular function; `this` will be bound to the constructor function itself. Constructs may register their dependencies by placing an $inject field that is a string array. Each dependency will be resolved before instantiating the constructor. If the dependency cannot be fulfilled, an Error will be thrown. | |
*/ | |
exports.register = function(name, constructor) { |
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
'use strict'; | |
/** | |
* A factory for creating access to the riot champion API. | |
* @param {http} http The object to send HTTP GET requests with. This is not a node | |
* http instance. It must respond to a get method with the signature (region, version, pathname, querystring). | |
* @param {String} version The version of the API to query. | |
*/ | |
function champions(http, version) { | |
/** |
OlderNewer