Skip to content

Instantly share code, notes, and snippets.

Ricky Han rickyhan

Block or report user

Report or block rickyhan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rickyhan /
Created Feb 17, 2018
transform regular python code into tensorflow
import astunparse, ast, astpretty
from ast import *
fname = "./"
with open(fname) as f:
txt =
class RewriteName(NodeTransformer):
def visit_BoolOp(self, node):
# print astpretty.pprint(node)

Keybase proof

I hereby claim:

  • I am rickyhan on github.
  • I am rickylqhan ( on keybase.
  • I have a public key whose fingerprint is E31A 62C4 A2ED 2F38 87C6 A7E0 B424 62FF 7D30 52C1

To claim this, I am signing this object:

rickyhan / Drawing.hs
Created Sep 29, 2017 — forked from chrisdone/Drawing.hs
Drawing language: first attempt
View Drawing.hs
{-# 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:
import asyncio
import json
import threading
import urllib
import urllib.request
from collections import OrderedDict
import websockets
rickyhan /
Created Jun 22, 2017 — forked from nikitakit/
Tensorflow Beam Search
Beam decoder for tensorflow
Sample usage:
from tf_beam_decoder import beam_decoder
decoded_sparse, decoded_logprobs = beam_decoder(
rickyhan / build.gradle
Last active Mar 24, 2017
Setting up CAS server
View build.gradle
apply plugin: 'org.springframework.boot'
apply from: ''
apply from: ''
bootRepackage {
enabled = false
springBoot {
mainClass = "org.springframework.boot.loader.WarLauncher"
View parallax.html
<script type="text/javascript" src=""></script>
(function ($) {
var maxfps = 25,
delay = 1 / maxfps * 1000,
You can’t perform that action at this time.