Skip to content

Instantly share code, notes, and snippets.

View christabella's full-sized avatar
💪
minimizing the negative log-likelihood

Christabella Irwanto christabella

💪
minimizing the negative log-likelihood
View GitHub Profile
@christabella
christabella / DefaultKeyBinding.dict
Created January 26, 2021 15:09
Emacs-ify OS X keybindings
/* Copy this file to ~/Library/KeyBindings/DefaultKeyBinding.dict */
/* http://www.gnufoo.org/macosx/ */
/* The original bindings are from Mike Ferris of lorax.com as shipped
* with his TextExtras package. They were further modified by Mishka Gorodnitzky
* (misaka@pobox.com), Patrick Linskey, and Llew Mason.
*/
{
"~f" = "moveWordForward:"; /* M-f */
"~b" = "moveWordBackward:"; /* M-b */
"~<" = "moveToBeginningOfDocument:"; /* M-< */
@christabella
christabella / gist:8e802f7304576e31fcb0a4d4ff765717
Created November 28, 2017 05:31 — forked from tebeka/gist:5426211
Serving dynamic images with Pandas and matplotlib (using flask)
#!/usr/bin/env python2
'''Serving dynamic images with Pandas and matplotlib (using flask).'''
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from cStringIO import StringIO
{
"embeddings": [
{
"tensorName": "Image Encodings",
"tensorShape": [
9918,
500
],
"tensorPath": "https://storage.googleapis.com/embeddings-projector/encodings.tsv",
"metadataPath": "https://storage.googleapis.com/embeddings-projector/metadata.tsv",
{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
150,
4
],
"tensorPath": "https://storage.googleapis.com/embeddings-projector/iris_tensors.tsv"
}