Skip to content

Instantly share code, notes, and snippets.

@tkf
tkf / em.py
Created March 8, 2010 12:50 — forked from showyou/em.py
import math
from pylab import *
import random
def mixture_gaussian(i):
pi_0 = 0.3
if random.random() < pi_0:
return random.gauss(-5, 1)
else:
return random.gauss( 5, 4)
@tkf
tkf / anything-c-yasnippet.el
Created June 6, 2012 16:48 — forked from myuhe/anything-c-yasnippet.el
yanippet 0.7.0で動作するよう修正した
;;; anything-c-yasnippet.el --- anything config for yasnippet.el
;; Author: Kenji.I (Kenji Imakado) <ken.imakaado@gmail.com>
;; Version: 0.6.1
;; Keywords: anything yasnippet
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.