Skip to content

Instantly share code, notes, and snippets.

View Grissess's full-sized avatar
🐲
busy doing derg things

Graham Northup Grissess

🐲
busy doing derg things
  • On your call stack
  • 05:35 (UTC -05:00)
View GitHub Profile
pub enum ABI {
SysV,
HP_UX,
NetBSD,
Linux,
Solaris,
AIX,
IRIS,
FreeBSD,
OpenBSD,
import os
import shlex
import signal
import sys
import traceback
import readline
PROMPT = '(%(sh)s)%(user)s@%(host)s %(wd)s%(prch)s '
def prompt():
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
vagrant was resolved to 1.8.2.dev, which depends on
bundler (<= 1.10.6, >= 1.5.2)
Current Bundler version:
bundler (1.11.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
def permute(choices):
if not choices:
yield ()
else:
for item in choices[0]:
print (lambda f, i, p, s, l: f(f, i, p, s, l))(lambda f, i, p, s, l: s if not i else f(f, i[1:], p, l(s, p('Dial %d: '%(i[0],)), i[0]), l), range(5), raw_input, set("about after again below could every first found great house large learn never other place plant point right small sound spell still study their there these thing think three water where which world would write".split(' ')), lambda s, d, p: set([i for i in s if i[p] in d]))
all_poss = set("about after again below could every first found great house large learn never other place plant point right small sound spell still study their there these thing think three water where which world would write".split(' '))
def poss_matches(poss, dial, dialpos):
return set([i for i in poss if i[dialpos] in dial])
def interact(prompt):
curr = all_poss
for i in xrange(5):
while True:
try:

Keybase proof

I hereby claim:

  • I am grissess on github.
  • I am grissess (https://keybase.io/grissess) on keybase.
  • I have a public key whose fingerprint is B2EF 0643 0935 C7F1 1041 070C 031F F9C1 3AA4 EC54

To claim this, I am signing this object: