Skip to content

Instantly share code, notes, and snippets.

@tkf
tkf / anything-c-yasnippet.el
Created Jun 6, 2012 — forked from myuhe/anything-c-yasnippet.el
yanippet 0.7.0で動作するよう修正した
View anything-c-yasnippet.el
;;; 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.
View 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)