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
""" | |
Example of abnormaly detection for 3D accelerometer | |
- Original source code was written by S. Kobayashi. | |
- Then, the source code was modified by by S. Hara. | |
""" | |
import json | |
import time | |
import argparse |
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
[project] | |
name = "oucs-jikken-aisp" | |
version = "24.1.3" | |
description = "OU CS JikkenB AI & SP" | |
readme = "README.md" | |
requires-python = "~=3.10.14" | |
dependencies = [ | |
"numpy==1.26.4", | |
"matplotlib==3.8.4", | |
"networkx==3.3", |
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 python | |
import wave | |
import socket | |
from struct import pack | |
import time | |
adinnet_hostname = 'localhost' | |
adinnet_port = 5530 | |
wav_filename = 'tmp.wav' |
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 | |
# | |
# Document rendering tool with 'upLaTeX' on EDUSYS environment | |
# | |
# rev.5 S. Hara, 2022.07.16 * Print parts of errors/warnings | |
# rev.4 S. Hara, 2022.06.16 * fix bug related log files | |
# rev.3 S. Hara, 2022.03.23 * platex --> uplatex | |
# rev.2 S. Hara, 2019.01.21 * bash version | |
# rev.1 N. Watanabe, 2013.12.19 * csh version | |
# |
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 python | |
# -*- coding: utf-8 -*- | |
'''Edu report checker: Level 2 | |
形態素解析も行いながら,発展的な内容もチェックしています. | |
Message Examples | |
------------------- | |
- [LV2-1-1] 1段落に{:d}単語含まれています.多くとも 600 単語以下となるよう,文や段落の構成を考え直してみましょう. |
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 python | |
# -*- coding: utf-8 -*- | |
'''Edu report checker: Level 1 | |
主にLaTeXの使い方のミスに起因するような,機械的に見つけられるレベルの問題を指摘しています. | |
Message Examples | |
------------------- | |
- [LV1-1-1] 全角句点には「.」を使いましょう. |
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
%ARAYURU(vargin) | |
% This is very simple audio recording tool. You can extract short audio | |
% segment by mouse clicking (right-click, then select 'save' menu). | |
%<OPTIONS> | |
% varname : Variable name for segments (DEFAULT: 'arayuru_segments') | |
% sampling_rate : Sampling rate of audio (DEFAULT: 16000 [Hz]) | |
% record_len : Length of recording window (DEFAULT: 2.0 [sec]) | |
% segment_len : Length of segmentation window (DEFAULT: 0.6 [sec]) | |
%<USAGE> | |
% arayuru('varname', 'mydata'); |
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 | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
my $opt_outdir = "."; | |
GetOptions('dir=s' => \$opt_outdir); | |
my @mixtures = (); |
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 -*- | |
""" | |
mkdfa.py | |
Implementation of mkdfa.pl for python 3 | |
Copyright (c) 2019 Sunao Hara. | |
This script is released under the MIT license. | |
https://opensource.org/licenses/mit-license.php | |
""" |
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
% Example of Graph A | |
A = [0 1 1 0 0; | |
1 0 0 0 0; | |
1 0 0 1 1; | |
0 0 1 0 0; | |
0 0 1 0 0 | |
]; | |
initial_node = 1; | |
target_node = 5; |
NewerOlder