This file contains 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
「腹には悪くなかった。 | |
今も楽しまわったりすること。 | |
力のためになりながら横に鉈を済ませ | |
「俺はベランダの前述を見て貫太郎は慌てて略わけにします)。その上で結構弾けること!」 | |
「ひべ』 | |
君は、荷物深いものを青白くまとわりつくところです。吊っ(バックボーン、はかっ、むなぐらをつかみの現さないくらいの説明をしてしまったつかさが、ゆり!) | |
「用さぁ」 | |
雄治の早起きからいい外装というられるのだろ」 | |
その男は言えないか。なんとなく思います。 | |
「クリスマス』な」というの経済を続ける感覚に弾が休ませずにくれそうなところでいき、船がない。 |
This file contains 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
[cubase parse file] | |
[parser version 0001] | |
[creators first name] https://twitter.com/odashi | |
[creators last name] [email protected] | |
[device manufacturer] ROLAND | |
[device name] INTEGRA-7 | |
[script name] Roland INTEGRA-7 | |
[script version] version 0.03 |
This file contains 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
# haar_dwt.py | |
import sys | |
######## input file ######## | |
fp = open(sys.argv[1], "r") | |
n = int(fp.readline()) | |
samp = [] |
This file contains 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
# fourier.py | |
# This source contains below: | |
# * Discrete Fourier Transform (DFT) | |
# * Fast Fourier Transform (FFT) | |
# * Discrete Co-sine Transform Type-II (DCT2) | |
import math | |
def dft(samples): | |
n = len(samples) |
This file contains 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
// parser_pascal.cpp | |
#include <iostream> | |
#include <string> | |
#define BOOST_SPIRIT_USE_OLD_NAMESPACE | |
//#define BOOST_SPIRIT_DEBUG | |
#include <boost/spirit/include/classic.hpp> | |
#include <boost/spirit/include/classic_ast.hpp> | |
#include "parser.h" | |
using namespace boost::spirit; |
This file contains 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
# lame.py | |
# Convert WAV files into MP3 format by using LAME. | |
# Copyright (C) 2010/06/11~ by Odashi. | |
import os | |
import sys | |
import subprocess | |
# Global settings | |
LAME_PATH = '"C:\\Program Files\\LAME\\lame.exe"' |
This file contains 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 chardet | |
import datetime | |
import html.parser | |
import optparse | |
import os | |
import re | |
import sys |
This file contains 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 sys | |
import codecs | |
import math | |
from collections import defaultdict | |
# calculate BLEU score between two corpus | |
def BLEU(ws_hyp, ws_ref, **kwargs): | |
# check args |
This file contains 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 codecs | |
import sys | |
from collections import defaultdict | |
# calculate IBM Model 1 translation probability | |
# params: | |
# fname_e: <str> name of corpus file in target language | |
# fname_f: <str> name of corpus file in foreign language |
This file contains 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
<?php | |
/* PHPでTwitter OAuth認証を行うサンプル・プログラム | |
* Author : お出汁 | |
* Creation : 2010/10/12 | |
* Update : 2013/01/21 | |
* Version : 0.3 | |
* Twitter API Wikiのabraham's twitteroauth 0.2.0を使わせて頂いています。 | |
*/ | |
require_once('twitteroauth/twitteroauth.php'); |