Skip to content

Instantly share code, notes, and snippets.

@aaroncox
aaroncox / question.md
Last active December 12, 2015 00:58
D3 Math Question

The goal here is to determine if the +Damage from the new Rubies are applied BEFORE or AFTER the '+% Damage' attribute of the weapon are applied.

Scenario #1 does the math and applies the Ruby's +Damage bonus BEFORE the +% Damage attribute, where as Scenario #2 applies the Ruby's +Damage AFTER the +% Damage attribute has already been applied.

Example Weapon

http://d3up.com/i/4463229

  • 429.28 - 971.72 Damage
  • 1.40 Attacks per Second
@aaroncox
aaroncox / gist:5454711
Last active December 16, 2015 15:19
composer.json file to include EpicMongo
{
"require": {
"laravel/framework": "4.0.*",
"aaroncox/epicmongo": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "git://github.com/aaroncox/EpicMongo.git"
}
@aaroncox
aaroncox / gist:5548105
Created May 9, 2013 15:16
Cloning a Repo from Github using Dulwich/Python
#!/usr/bin/env python
import dulwich.client
from dulwich.repo import Repo
from dulwich import index
import os
import shutil
client, path = dulwich.client.get_transport_and_path("https://github.com/aaroncox/d3.git")
@aaroncox
aaroncox / testcase.js
Created May 23, 2013 21:28
Testing ParseItems
suite("parseItems >", function() {
var testData = require('./data/parseItems');
setup(function() {
this.calc = new Calc();
});
_.each(testData, function(testCase) {
suite(testCase.name + " >", function() {
setup(function() {
this.calc.setBuild(testCase.given);
this.calc.run();
@aaroncox
aaroncox / d3up-v2-output-full.json
Created June 6, 2013 22:47
D3Up Calculator Output Test
{
"attrs": {
"max-fury": 100,
"strength": 1959,
"dexterity": 127,
"intelligence": 307,
"vitality": 880,
"plus-magic-find": 180,
"plus-gold-find": 202,
"critical-hit": 49.5,
@aaroncox
aaroncox / d3up-v2-output.json
Last active December 18, 2015 04:29
D3Up Calc V2 Stats Output
{
"stats": {
"armor": 5320,
"life": 31076,
"attack-speed": 9,
"critical-hit": 49.5,
"critical-hit-damage": 190,
"strength": 1959,
"intelligence": 307,
"dexterity": 127,
@aaroncox
aaroncox / index.html
Last active December 18, 2015 08:18
Synchronous Build Requests
<html>
<head></head>
<body>
<!-- ... (The rest of the page page) ... -->
<script type="text/javascript" charset="utf-8">
$(function() {
d3up.getBuild(1);
d3up.getBuild(2);
console.log(d3up.builds);
});
# Install HomeBrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
# Install Git
brew install git
# Install wget
brew install wget
# Install NodeJS
Verifying myself: My Bitcoin username is +aaroncox. https://onename.io/aaroncox

Keybase proof

I hereby claim:

  • I am aaroncox on github.
  • I am jesta (https://keybase.io/jesta) on keybase.
  • I have a public key ASDn2T8U_KLuUmUq_NIq8yLEUpS3hovLg903aqpzhnOqWgo

To claim this, I am signing this object: