Skip to content

Instantly share code, notes, and snippets.

View noname01's full-sized avatar

Jingchen Hu noname01

  • University of Washington
  • Seattle
View GitHub Profile
@noname01
noname01 / tf_seq2seq_single_str_inference.py
Created April 30, 2017 18:25
Quick hack for loading seq2seq model and inference via feed_dict.
from pydoc import locate
import tensorflow as tf
import numpy as np
from seq2seq import tasks, models
from seq2seq.training import utils as training_utils
from seq2seq.tasks.inference_task import InferenceTask, unbatch_dict
class DecodeOnce(InferenceTask):
'''
@noname01
noname01 / uw-catalog-scraper.js
Last active August 29, 2015 14:06
node.js script to scrape uw time schedule homepage
var fs = require('fs');
var request = require('request');
var cheerio = require('cheerio');
var url = "http://www.washington.edu/students/timeschd/AUT2014/";
request(url, function (error, response, html) {
if (!error && response.statusCode == 200) {
var $ = cheerio.load(html);
var data = {};