Skip to content

Instantly share code, notes, and snippets.

View aia's full-sized avatar
🚀
Confetti has left the cannon

Artem Veremey aia

🚀
Confetti has left the cannon
View GitHub Profile
@aia
aia / gist:4260eda3db565cc33b51
Created June 17, 2015 09:01
Track-O-Bot patch to support new heroes
diff --git a/src/HearthstoneLogTracker.cpp b/src/HearthstoneLogTracker.cpp
index ff8fd8a..8eaa3ff 100644
--- a/src/HearthstoneLogTracker.cpp
+++ b/src/HearthstoneLogTracker.cpp
@@ -10,7 +10,7 @@ const char HERO_POWER_CARD_IDS[NUM_HERO_POWER_CARDS][32] = {
};
// Hero Ids: Must match Class enum
-const int NUM_HEROES = 9;
+const int NUM_HEROES = 12;
class EMR::Monitor::APIv1 < Grape::API
version 'v1', :using => :path, :vendor => 'Wealthfront'
format :json
resource 'steps' do
desc "List time length of the last step with name and state."
params do
requires :name, type: String, desc: "Step name substring."
requires :state, type: String, desc: "Step state."
end
require 'java'
require 'wealthfront-backend-fatjar'
class EMR::Monitor::InjectorModule < com.google.inject.AbstractModule
def configure
options = com.kaching.platform.guice.ApplicationOptions.new
options.configuration = "/path/to/config/configuration.properties"
options.loadConfigurationFromFile = true
install(com.kaching.platform.guice.CommonModule.new(options))
install(build_service_module(options))