Skip to content

Instantly share code, notes, and snippets.

View developer-mayuan's full-sized avatar

Mabuchi Akira developer-mayuan

View GitHub Profile
@developer-mayuan
developer-mayuan / nginx-websocket-proxy.conf
Created March 12, 2018 07:49 — forked from uorat/nginx-websocket-proxy.conf
Nginx Reverse Proxy for WebSocket
upstream websocket {
server localhost:3000;
}
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/websocket.access.log main;
# Working example for my blog post at:
# https://danijar.github.io/structuring-your-tensorflow-models
import functools
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def doublewrap(function):
"""
A decorator decorator, allowing to use the decorator to be used without