Skip to content

Instantly share code, notes, and snippets.

View DanBradbury's full-sized avatar
:shipit:
Doing the work

Dan Bradbury DanBradbury

:shipit:
Doing the work
View GitHub Profile
@DanBradbury
DanBradbury / gist:8290977
Created January 6, 2014 22:28
OnlyOneSpec

RELEASE TARGET

  • iOS = Android > PC > Unix

DESIGN PATTERN

  • Level based gameplay. Think old school mario, super meatboy, etc

iOS VIEW PORT

@DanBradbury
DanBradbury / gist:7796795
Created December 4, 2013 22:30
java run
dan@Nikki:~/apps/gamelog/current/leaguelib/src$ java -verbose com/achimala/leaguelib/tests/MainTest d
[Opened /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.lang.Object from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.io.Serializable from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.lang.Comparable from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.lang.CharSequence from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.lang.String from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.GenericDeclaration from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.Type from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
[Loaded java.lang.reflect.AnnotatedElement from /usr/java/jdk1.7.0_45/jre/lib/rt.jar]
@DanBradbury
DanBradbury / gist:7669319
Created November 27, 2013 01:34
Items Items Items
[ Abyssal Scepter, 3001 ],[ Aegis of the Legion, 3105 ],[ Amplifying Tome, 1052 ],[ Ancient Coin, 3301 ],[ Archangel's Staff, 3003 ],[ Archangel's Staff (Crystal Scar), 3007 ],[ Athene's Unholy Grail, 3174 ],[ Atma's Impaler, 3005 ],[ Augment: Death, 3198 ],[ Augment: Gravity, 3197 ],[ Augment: Power, 3196 ],[ Avarice Blade, 3093 ],[ B. F. Sword, 1038 ],[ Banner of Command, 3060 ],[ Banshee's Veil, 3102 ],[ Berserker's Greaves, 3006 ],[ Bilgewater Cutlass, 3144 ],[ Blackfire Torch, 3188 ],[ Blade of the Ruined King, 3153 ],[ Blasting Wand, 1026 ],[ Bonetooth Necklace, 3166 ],[ Bonetooth Necklace, 3167 ],[ Bonetooth Necklace, 3168 ],[ Bonetooth Necklace, 3169 ],[ Bonetooth Necklace, 3171 ],[ Boots of Mobility, 3117 ],[ Boots of Speed, 1001 ],[ Boots of Swiftness, 3009 ],[ Brawler's Gloves, 1051 ],[ Catalyst the Protector, 3010 ],[ Chain Vest, 1031 ],[ Chalice of Harmony, 3028 ],[ Cloak of Agility, 1018 ],[ Cloth Armor, 1029 ],[ Crystalline Flask, 2041 ],[ Dagger, 1042 ],[ Deathfire Grasp, 3128 ],[ Doran's Blad
@DanBradbury
DanBradbury / gist:7605383
Created November 22, 2013 19:23
command test
package com.achimala.leaguelib.tests;
import java.util.concurrent.locks.ReentrantLock;
import com.achimala.leaguelib.connection.LeagueAccount;
import com.achimala.leaguelib.connection.LeagueConnection;
import com.achimala.leaguelib.connection.LeagueServer;
import com.achimala.leaguelib.errors.*;
import com.achimala.leaguelib.models.*;
import com.achimala.util.Callback;
@DanBradbury
DanBradbury / gist:7573153
Created November 20, 2013 23:30
scraping requests+params from production
f = File.open("dip_log", "r")
request_count = 0
requests = []
params = []
mark1 = "{"
mark2 = "}"
while line = f.gets
if line.start_with?( "Processing")
split = line.split(" ")
requests << split[1]
@DanBradbury
DanBradbury / gist:7573126
Created November 20, 2013 23:27
Daily logs from production
MessagesListReportsController#new
"controller"=>"messages_list_reports"
"action"=>"new"
LoginController#login
"controller"=>"login"
"action"=>"login"
CouponRoiReportsController#new
"authenticity_token"=>"W8vLM1D0LQ9I26R7wnXHqmWJO3b8fI0OgvVIsJPaHYA="
"generate"=>"true"
"action"=>"new"
[HealthBarSettings]
MaxHealthTicks = 50
MaxHealthMicroTicks = 100
DefaultHealthPerMicroTick = 50
DefaultHealthPerTick = 200
DefaultHealthPerMegaTick = 1000
TickAlpha = 200
MicroTickAlpha = 140
MicroTickHeight = 0.5
require 'benchmark'
require 'rubygems'
valid = Benchmark.measure do
Gem::Version.new '1.22.333.4444.55555.666666.7777777'
end
puts 'Valid version time:'
puts valid
@DanBradbury
DanBradbury / zzz
Created October 15, 2013 17:58
Migrating admin to 1.9.3
Upgrade Strategy
----------------
The goal of this is to outline the plan to update admin to Ruby 1.9.3 as
seemlessly as possible. The document is broken into phases that need to be
taken to fully upgrade the application.
### Testing ###
We are going to need to be able to stand up an App box to allow for QA to fully
Auto-merging vagrant/util/admin_db_restore
CONFLICT (content): Merge conflict in vagrant/util/admin_db_restore
Auto-merging vagrant/Vagrantfile
CONFLICT (content): Merge conflict in vagrant/Vagrantfile
Auto-merging admin/test/unit/messages_test.rb
CONFLICT (content): Merge conflict in admin/test/unit/messages_test.rb
Auto-merging admin/test/unit/message_group_test.rb
Auto-merging admin/test/unit/image_test.rb
Auto-merging admin/test/test_helper.rb
Auto-merging admin/test/integration/api_integration_test.rb