This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nameko run publisher | |
starting services: service_b, service_a | |
Connected to amqp://guest:**@127.0.0.1:5672// | |
Traceback (most recent call last): | |
File "/home/alex/.virtualenvs/nameko/lib/python3.5/site-packages/eventlet/hubs/poll.py", line 115, in wait | |
listener.cb(fileno) | |
File "/home/alex/.virtualenvs/nameko/lib/python3.5/site-packages/eventlet/greenthread.py", line 214, in main | |
result = function(*args, **kwargs) | |
File "/home/alex/.virtualenvs/nameko/lib/python3.5/site-packages/nameko/utils.py", line 176, in call | |
return getattr(item, name)(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Data.List ( sort, sortBy ) | |
import Data.Ord (comparing) | |
import Data.Maybe | |
import Control.Monad (msum) | |
import System.IO | |
import System.Random | |
import Options.Applicative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fmt::Display; | |
// Our stack-allocated, typed, linked list | |
struct TypedLinkedList<E, R> where E: MyTrait, R: Traverse { | |
value: E, | |
rest: R, | |
} | |
// Denotes the end of the list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from collections import defaultdict | |
board = list("SERSPATGLINESERS".lower()) | |
with open("word.list") as f: | |
allowed = set(word.strip().lower() for word in f) | |
interim = set() | |
for word in allowed: |