Skip to content

Instantly share code, notes, and snippets.

View yongjincho's full-sized avatar

Yongjin Cho yongjincho

  • Upstage AI
  • South Korea
View GitHub Profile
@yongjincho
yongjincho / github_oauth.py
Last active April 9, 2021 02:55
github oauth example
import requests
from flask import Flask
from flask import request, jsonify
# Register your application and paste CLIENT_ID and CLIENT_SECRET below.
# https://github.com/settings/applications/new
CLIENT_ID = 'YOUR_CLIENT_ID'
CLIENT_SECRET = 'YOUR_CLIENT_SECRET'
SCOPE = 'user'
@yongjincho
yongjincho / vae.py
Last active July 27, 2018 18:34
A Simple Implementation of Variational Autoencoder (VAE)
# Copyright 2018 Yongjin Cho <yongjin.cho@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# prefix key
set-option -g prefix C-a
unbind-key C-b
# color
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left '#[fg=green]#S '
set-window-option -g window-status-current-bg red