Skip to content

Instantly share code, notes, and snippets.

View ELLIOTTCABLE's full-sized avatar
🐫

ELLIOTTCABLE

🐫
View GitHub Profile
@ELLIOTTCABLE
ELLIOTTCABLE / 1. crash.log
Last active August 29, 2015 14:10
Endless Space crash.
Process: Endless Space [22627]
Path: /Users/USER/Library/Application Support/Steam/*/Endless Space.app/Contents/MacOS/Endless Space
Identifier: unity.AMPLITUDE Studios.Endless Space
Version: Unity Player version 4.1.5f1 (4.1.5f1)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: Endless Space [22627]
User ID: 501
Date/Time: 2014-12-01 09:35:23.268 -0600
> cd haskell-lens
> makepkg -si
==> Making package: haskell-lens 4.4.0.2-1 (Wed Oct 22 10:59:04 UTC 2014)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: haskell-parsec: requires haskell-mtl=2.1.3.1-3
:: haskell-parsec: requires haskell-text=1.1.1.3-1
#!/usr/bin/env ruby
# Usage:
# # ./dat_fixer.rb <width in pixels>
#
# for example,
# $ ./dat_fixer.rb 150 >icons/usb.dat
width = Integer ARGV[0]
STDERR.puts "Splitting #{width}px wide image ..."
MAIN: 1; 2;
1: foo (#3) bar;
2: widget [#3] wodget;
3: a b c d;
implementation console trace[] Hi (#two);
infrastructure affix[] [ foo[] a b c d [two: implementation console explode[] Yo!] ];
// Much of this is cribbed from the JavaScript grammar.
// This fact makes me a horrible person. ~ ELLIOTTCABLE
__ENTER = Script
Script = es: Expression*
{ return {type: 'script', expressions: es} }
Expression
= f: Word r:SeperatedWord* END
{ r.unshift(f); return r }
implementation void[]
[ specification rule[] "compare two matching labels results" { implementation void[]
[ infrastructure label compare[] foo foo ]
[ pass[] ]
} eventually { fail[] } ]
[ specification rule[] "compare two unmatching labels doesn't result" { implementation void[]
[ infrastructure label compare[] foo bar ]
[ fail[] ]
} eventually { pass[] } ]
# The Rulebook, or Paws-language spec-suite, is written as a series of files like the following.
# Each file is a YAML file encoding a set of tests. This file can be consumed as-is (if you have a
# YAML parser handy), compiled into a single Paws-source-code test file (see below), or into
# a directory of individual plain Paws files for each test.
#
# (Eventually / ideally, an automated test-runner provided with the Rulebook will take your
# implementation's binary, compile these tests to individual files, and then verify that your
# implementation-in-progress succeeds on each test, individually.)
Combinations against infrastructure:
Paws.js output
[devyn] Paws.rs - ~/Projects/ELLIOTTCABLE/Paws.js/Executables/paws.js test-branch.paws
Hello, world
Hello, world
Hello, world
Hello, world
~ Paws loves you. Bye! 💖
Paws.rs output
foo bar (widget dongle)
baz mud
wibble wobble
spaz
-- or --
[foo bar (widget dongle); baz mud] wibble wobble; spaz