Skip to content

Instantly share code, notes, and snippets.

View DanBradbury's full-sized avatar

Dan Bradbury DanBradbury

View GitHub Profile
@DanBradbury
DanBradbury / googleFetch.rb
Created October 31, 2016 17:25
Autoemoji
#!/usr/bin/env ruby
require 'uri'
require 'net/https'
require 'nokogiri'
if ARGV.size != 1
puts "Usage: ruby googleFetch.rb SEARCH_VALUE"
exit
end
search_value = ARGV[0]
@DanBradbury
DanBradbury / 0_reuse_code.js
Created September 2, 2016 20:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@DanBradbury
DanBradbury / spec_helper.rb
Last active February 12, 2016 08:13
Replacing simplecov
# add to the top of your spec_helper.rb
require 'yardcov'
YardCov.start
# require files
# ...
Rspec.configure do |config|
# ...
config.after(:suite) do
YardCov.report_results

Twisted Treeline Cheatsheet

General Knowledge: Good things to know around the map

Early game

  • Alters unlock at 3 minutes
  • Solo lanes has 3 waves come before 3 minutes. Level 3 is obtainable but you must push
  • Jungle can clear 1 round of camps and repeat wolves for before 3 minutes (tested with Riven)
  • Quick Jungle clear with counter jungle @ 2:38 with level 3. With Udyr I could get 3 and be in their bush by altar by 2:50 (nuts)
@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"