Skip to content

Instantly share code, notes, and snippets.

@jamie
jamie / um.cr
Last active August 29, 2015 14:26
class Um
def initialize(program, key = "")
@array = [] of Array
@register = [0_u32] * 8
@finger = 0_u32
@a = @b = @c = @z = @value = 0_u32
@array << program
end
data = [] of UInt32
File.open(filename, "rb") do |file|
- (file.size/4).times do
- a = (file.read_byte || 0).to_u32
- b = (file.read_byte || 0).to_u32
- c = (file.read_byte || 0).to_u32
- d = (file.read_byte || 0).to_u32
+ slice = Slice(UInt8).new(file.size.to_i)
+ file.read(slice)
+ (file.size/4).times do |w|
Rattle, Battle, Grab the Loot
Deckbuilding: The Deckbuilding Game
Cthulhu Wars
Cthulhu Wars
(Cthulhu cosplay - Cthulhu Wars booth)
Pandemic
Flick 'em Up!
Flick 'em Up!
Champions of Midgard
Warehouse 51
{
"type": "post",
"data": [
{
"name": "utf8",
"value": "\u2713"
},
{
"name": "authenticity_token",
"value": "fL5...+zXs="
Africa
Agent
Ambulance
America
Atlantis
Base
Bed
Beijing
Bell
Berry

There's this whole life experience that happens when you move out and earn your place in the world on your own merit. It kind of instills a sense of confidence and humility in you - to know that you've survived the cold of the world, but to also know how susceptible you are to losing everything if you drop your guard. It gives you a certain empathy toward your fellow man (who have survived the same trials you have), and makes you very grateful for what the world hasn't yet taken from you.

You lose your arrogance and your pride after you've weathered that storm, and you gain an instinct for acknowledging that core strength in others that you meet. It's this unspoken connection that links you to other people who have chosen (or been forced to) bare the weight of the world on their shoulders.

They make it work. They find a way. They do what needs to be done. And they ALWAYS help others - because there's no one else who can. It's a right of passage that results in you turning from a boy into a man.

And then th

@jamie
jamie / analyze.rb
Created November 27, 2015 18:55
Some board analysis for Pandemic (and Pandemic Legacy).
require 'pp'
def compute(paths)
out = []
paths.keys.combination(3).each do |src|
next if src.include?(:atla)
next if src.include?(:hong)
next if src.include?(:cair)
next if src.include?(:saop)
seen = [src]
@jamie
jamie / risk.rb
Created April 14, 2016 17:51
Simple math simulation for risk legacy combat
require 'pp'
require 'csv'
def attack(attackers, defenders, defending=2)
while defenders > 0 and attackers > 1
this_attack = [attackers-1, 3].min
this_defense = [defenders, defending].min
attack = ([0]*this_attack).map{rand(6)+1}.sort
defense = ([0]*this_defense).map{rand(6)+1}.sort
@jamie
jamie / wow.md
Created June 9, 2016 22:28
A thought for WoW Legacy/Progression servers

What I think Blizzard should do, regarding legacy servers.

Announce two new "Progression" realms (one or more, depending on expected load). These servers should be segregated from the rest of the content on an account - no shared pets, mounts, heirlooms, cross-realm mail, or other unlocks. All toons are starting from scratch.

One of these realms will be Serious Progression, with all the modern conveniences of life removed. No more group/dungeon finder, dungeon journals, etc. The other will be Casual Progression, with those conveniences. Anyone who wants to relive the past can choose their level of comfort. Trying to work through a dungeon tier in 1/3 the time people actually got is enough pressure, I'd think.

Both of these realms will launch on the same date (for our example, Jan 1), containing only WoW 1.0 world data (zones + dungeons, so up to BRD/MC). After launch, the server will roll through one PvE content patch every month. Patches with just world bosses or non-dungeon events will be rolled into the

@jamie
jamie / gist:543f53e77f1dfc8bf24362206156a5d7
Created November 3, 2016 22:21
WoW fel-corrupted apexis spawns
/way Tanaan Jungle 27.4 69.3
/way Tanaan Jungle 27.5 69.2
/way Tanaan Jungle 29 72.6
/way Tanaan Jungle 29.1 67.6
/way Tanaan Jungle 31 73.6
/way Tanaan Jungle 31.2 72.7
/way Tanaan Jungle 31.3 67.1
/way Tanaan Jungle 31.6 69
/way Tanaan Jungle 32 70.2
/way Tanaan Jungle 32.1 75