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
#include <time.h> | |
static clock_t tictoc_start = 0; | |
void tic(void) { | |
s = clock(); | |
} | |
void toc(void) { | |
clock_t e = clock(); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
void basename(const char* inFilename, char* outFilename, int outBuflen) | |
{ | |
char* p; | |
strncpy(outFilename, inFilename, outBuflen); | |
// 拡張子の削除. |
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
# | |
# Configuration file for open_jtalk.sh | |
# | |
# Copyright (c) Sunao HARA, Shikano Lab., NAIST/JAPAN | |
# Last Modified: 2012/01/25 14:03:44. | |
# | |
## | |
## WAVE synthesis Parameters (Recommended) | |
## |
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
#!/bin/bash | |
# | |
# Open JTalk 実行のためのスクリプト | |
# | |
# Copyright (C) 2012 Sunao HARA, Shikano Lab., NAIST/JAPAN | |
# Last Modified: 2012/01/25 13:38:20. | |
# | |
VOICEID=$1 | |
SRC_TXT=$2 |
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
/** | |
* emsnr | |
* SNRを計算する | |
* | |
* Usage: echo datafilename | emsnr -r residual -l maxloop | |
* Output: filename SNR SNR_fix SNR_ptile weight low_power high_power low_variance high_variance loglikelyhood | |
* | |
* 2012-02-18 Add licence | |
* 2008-10-12 引数をすべてオプションに変更(-h, -s, -x, -r, -l) | |
* Pre-Emphasis オプション(-e) |
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
#!/usr/bin/perl | |
# | |
# excel_latex_copy.pl | |
# | |
# Convert Excel table to LaTeX table format | |
# using Win32::Clipboard (Windows only) | |
# | |
# Copyright (C) 2012- Sunao HARA, NAIST/JAPAN. All rights reserved. | |
# Last Modified: 2012/03/05 17:22:08. | |
# |
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
*** predict.c 2011-02-05 21:21:49.000000000 +0900 | |
--- predict2.c 2012-03-19 19:08:41.905910501 +0900 | |
*************** | |
*** 138,145 **** | |
} | |
else | |
{ | |
! predict_label = predict(model_,x); | |
! fprintf(output,"%d\n",predict_label); | |
} |
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
--- chasen-2.3.3/lib/dartsdic.cpp.org 2003-07-31 01:06:57.000000000 +0900 | |
+++ chasen-2.3.3/lib/dartsdic.cpp 2012-08-24 19:24:13.000000000 +0900 | |
@@ -68,7 +68,7 @@ | |
da = (darts_t*)cha_malloc(sizeof(darts_t)); | |
da->da_mmap = cha_mmap_file(daname); | |
- darts->setArray(cha_mmap_map(da->da_mmap)); | |
+ darts->set_array(cha_mmap_map(da->da_mmap)); | |
da->da = darts; | |
da->lex_mmap = cha_mmap_file(lexname); |
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
#!/bin/bash | |
# | |
# Sample of job queing | |
# | |
# Copyright (C) 2014 Sunao HARA ([email protected]) | |
# Copyright (C) 2014 Abe laboratory, Okayama university | |
# Last Modified: 2014/07/11 11:08:14. | |
# | |
function queue_job() { |
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
#!env perl | |
=encoding UTF-8 | |
=head1 NAME | |
cb_download_attachment.pl - サイボウズLiveの添付ファイルを取得する | |
=head1 SYNOPSIS | |
# 1. Prepare download directory | |
$ mkdir download |
OlderNewer