Skip to content

Instantly share code, notes, and snippets.

View 0b01's full-sized avatar

Ricky Han 0b01

View GitHub Profile
@0b01
0b01 / Drawing.hs
Created September 29, 2017 07:10 — forked from chrisdone/Drawing.hs
Drawing language: first attempt
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -Wall #-}
-- Set your font to a monospace font which makes this character the same as the line-height: │
--
-- Otherwise, you'll see an ugly gap between connected lines if the
-- line-height of the font is high.
--
-- Example fonts:
--
@0b01
0b01 / tf_beam_decoder.py
Created June 22, 2017 06:04 — forked from nikitakit/tf_beam_decoder.py
Tensorflow Beam Search
"""
Beam decoder for tensorflow
Sample usage:
```
from tf_beam_decoder import beam_decoder
decoded_sparse, decoded_logprobs = beam_decoder(
cell=cell,