Skip to content

Instantly share code, notes, and snippets.

View lhoangan's full-sized avatar

Hoàng-Ân Lê lhoangan

View GitHub Profile
@hanspinckaers
hanspinckaers / .vimrc
Last active December 8, 2020 09:37
My full vimrc
syntax on
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree' " file list
Plug 'majutsushi/tagbar' " show tags in a bar (functions etc) for easy browsing
Plug 'vim-airline/vim-airline' " make statusline awesome
Plug 'vim-airline/vim-airline-themes' " themes for statusline
Plug 'jonathanfilip/vim-lucius' " nice white colortheme
Plug 'davidhalter/jedi-vim' " jedi for python
@gyglim
gyglim / tensorboard_logging.py
Last active August 23, 2023 21:29
Logging to tensorboard without tensorflow operations. Uses manually generated summaries instead of summary ops
"""Simple example on how to log scalars and images to tensorboard without tensor ops.
License: BSD License 2.0
"""
__author__ = "Michael Gygli"
import tensorflow as tf
from StringIO import StringIO
import matplotlib.pyplot as plt
import numpy as np
@dsample
dsample / progress.html
Created February 7, 2016 21:43
A simple countdown timer with progress bar. We used it to show the progress of our pregnancy.
<div class="progress" style="border: 1px solid #999">
<div id="progress-bar" style="border-right: ; background-color: #96f; height: 10px; width: 0%"></div>
</div>
<div id="countdown"></div>
<script type="text/javascript">
function getDaysRemaining(endtime){
var t = Date.parse(endtime) - Date.parse(new Date());
var days = Math.floor( t/(1000*60*60*24) );
return days;