Skip to content

Instantly share code, notes, and snippets.

@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]

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

Africa
Agent
Ambulance
America
Atlantis
Base
Bed
Beijing
Bell
Berry
{
"type": "post",
"data": [
{
"name": "utf8",
"value": "\u2713"
},
{
"name": "authenticity_token",
"value": "fL5...+zXs="
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
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|
@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
@jamie
jamie / EvenOdd.lua
Created June 18, 2015 19:50
Easy custom problem specification for bonus campaign
-- The function get_name() should return a single string that is the name of the puzzle.
--
function get_name()
return "EVEN / ODD"
end
-- The function get_description() should return an array of strings, where each string is
-- a line of description for the puzzle. The text you return from get_description() will
-- be automatically formatted and wrapped to fit inside the puzzle information box.
--

Hello everyone,

I would like to address the current situation regarding Arissa, and Art of the Catch, an animated fishing mod scripted by myself and animated by Aqqh.

It now lives in modding history as the first paid mod to be removed due to a copyright dispute. Recent articles on Kotaku and Destructiod have positioned me as a content thief. Of course, the truth is more complex than that.

I will now reveal some information about some internal discussions that have occurred at Valve in the month leading up to this announcement, more than you've heard anywhere else.

I'll start with the human factor. Imagine you wake up one morning, and sitting in your inbox is an email directly from Valve, with a Bethesda staff member cc'd. And they want YOU, yes, you, to participate in a new and exciting program. Well, shit. What am I supposed to say? These kinds of opportunities happen once in a lifetime. It was a very persuasive and attractive situation.

I had just merged onto a high speed 3 lane road in Winnipeg that is normally busy, but except for a lone sporty Japanese car in the far left lane, was empty for a few blocks back. The motorcycle under me churned happily, now that I had the radiator facing into the wind again. I needed to turn left, and he was closing slowly, a comfortable distance back. 4 signal blinks, a shoulder check, and rolling on some throttle to even the closure rate, I move into the left lane. This apparently was a grave insult. Accelerating to close the distance quickly, the car came uncomfortably close behind me. The gleaming new car began an aggressive pass on the right.

So I said to myself, "what the fuck?" "Invalid query" self exclaims in return. He's a little literal sometimes. "Does he look a little aggressive to you?" "More than a little", self agrees.

50 meters ahead, the car slams on the brakes with a squawk of the tires, and ends up behind me. Repeating his performance, he passes me with as much acceleration as he had to