Skip to content

Instantly share code, notes, and snippets.


odanado odanado

View GitHub Profile
odanado /
Created November 21, 2017 13:20 — forked from ihsgnef/
Visualize attention over text with background colors
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
def colorize(words, color_array):
# words is a list of words
# color_array is an array of numbers between 0 and 1 of length equal to words
cmap ='RdBu')
template = '<span class="barcode"; style="color: black; background-color: {}">{}</span>'
colored_string = ''
odanado / work78.c
Created October 30, 2017 09:41 — forked from siberiy4/work78.c
View work78.c
int main(void){
int a,b,c=1, i, j, e, f, p, d;
odanado / build-llvm.bash
Created April 16, 2017 12:00 — forked from zchee/build-llvm.bash
Build llvm for OS X
View build-llvm.bash
set -e
# Building LLVM on OSX CMake setup script
# Required:
# - clang by Xcode6 or later
# - cmake
# - ninja