This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import numpy as np | |
cimport numpy as np | |
from libc.math cimport log | |
from scipy.misc import logsumexp | |
cdef double digamma(double x): | |
cdef double result = 0.0 | |
cdef double xx, xx2, xx4 | |
assert x>=0, "digamma error" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
import re | |
#適当にゴミは自分で取ってね | |
URL = "http://kohaumotu.org/rongorongo_org/translit/%s.html" | |
for i in range(97,123): | |
url = URL % chr(i) | |
html = urllib2.urlopen(url).read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import numpy as np | |
import math | |
def LevinsonDurbin(r, lpcOrder): | |
""" | |
from http://aidiary.hatenablog.com/entry/20120415/1334458954 | |
""" | |
a = np.zeros(lpcOrder + 1,dtype=np.float64) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// chatserver project main.go | |
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"github.com/golang/glog" | |
"github.com/zenazn/goji" | |
"github.com/zenazn/goji/web" |