Skip to content

Instantly share code, notes, and snippets.

View nishimotz's full-sized avatar

Takuya Nishimoto nishimotz

View GitHub Profile
@nishimotz
nishimotz / downloader.rb
Created October 14, 2009 14:11
simple file download page generator
#!/usr/bin/ruby -Ku
# simple file download page generator
# 2009-02-03 by nishimoto
# 2009-10-14 gist version
# [files.txt]
# * : h2
# - : text
# otherwise : link to file
require "erb"
# gtalk.py
# encoding: utf-8
# socket client wrapper for Windows / Linux
# updated by nishimotz 2010-04-04
# created by nishimotz 2009-11-17
# http://ja.nishimotz.com/galateatalk
import socket
import threading
import time
@nishimotz
nishimotz / makeaudio.m
Created July 16, 2010 09:23
audio CAPTCHA demo for GNU Octave
% makeaudio.m
% 2010-07-16 by nishimotz@gmail.com
% http://www.slideshare.net/nishimotz/nishimoto-icchp2010
FILEBODY = "festival-en-00705-kal";
POSTFIX = "99";
RATIO = 0.99; % Exposed ratio
[D,SF] = wavread(strcat(FILEBODY,".wav"));
PERIOD = SF * 0.1; % 100ms period
# julius4itbc2proxy.py
# encoding: utf-8
# tested on Windows XP / Python 2.6
# based on https://gist.github.com/9f927195fa3df2228160
# 2010-10-07 by nishimotz http://ja.nishimotz.com
#
# Julius4 -(port:10501)- proxy.py -(port:10500)- ITBC2
#
# [module.conf] example
#
@nishimotz
nishimotz / _jtalk_core.py
Created December 4, 2010 11:26
Japanese speech engine wrapper for Open JTalk (part of NVDAjp)
# _jtalk_core.py
# -*- coding: utf-8 -*-
# Japanese speech engine wrapper for Open JTalk
# by Takuya Nishimoto
# http://ja.nishimotz.com/project:libopenjtalk
from ctypes import *
import codecs
import re
import string
@nishimotz
nishimotz / nvda_cbr.py
Created December 2, 2011 14:42
NVDA Clipboard Viewer 0.1
# -*- coding: utf-8 -*-
# -*- indent-tabs-mode: nil; -*-
# nvda_cbr.py
# Takuya Nishimoto (nishimotz.com)
# based on:
# http://www.nvda-project.org/nvdaControllerClient/
# http://code.activestate.com/recipes/355593/
import sys
import re
@nishimotz
nishimotz / gist:2382295
Created April 14, 2012 05:45
Pytyonによる日本語自然言語処理 p.482
{ u'か': { u'れ': { 'value': [ { 'lemma': u'枯れ', 'length': 2, 'pos': 'V-Y'},
{ 'lemma': u'枯れ', 'length': 2, 'pos': 'V-Z'},
{ 'lemma': u'彼', 'length': 2, 'pos': 'N'}]}},
u'く': { 'value': [{ 'lemma': u'区', 'length': 1, 'pos': 'N'}],
u'る': { 'value': [{ 'lemma': u'来る', 'length': 2, 'pos': 'V-S'}, { 'lemma': u'来る', 'length': 2, 'pos': 'V-T'}],
u'ま': { 'value': [{ 'lemma': u'車', 'length': 3, 'pos': 'N'}]}}},
u'つ': { 'value': [{ 'lemma': u'津', 'length': 1, 'pos': 'N'}]},
u'で': { 'value': [{ 'lemma': u'で', 'length': 1, 'pos': 'J-K'}], u'ま': { 'value': [{ 'lemma': u'デマ', 'length': 2, 'pos': 'N'}]}},
u'の': { 'value': [{ 'lemma': u'の', 'length': 1, 'pos': 'J-K'}]},
u'ま': { 'value': [{ 'lemma': u'間', 'length': 1, 'pos': 'N'}],
@nishimotz
nishimotz / mouseclick.py
Created April 8, 2014 02:38
NVDA グローバルプラグイン ナビゲーター位置にマウスを移動して左クリック
# coding: UTF-8
import globalPluginHandler
import globalCommands
class GlobalPlugin(globalPluginHandler.GlobalPlugin):
def script_moveMouseAndLeftClick(self, gesture):
globalCommands.commands.script_moveMouseToNavigatorObject(gesture)
globalCommands.commands.script_leftMouseClick(gesture)
@nishimotz
nishimotz / nvda-japanese-guidebook.txt
Last active August 29, 2015 14:03
NVDA 日本語版ガイドブック
2015年7月3日、下記 GitHub Pages への移行作業を始めました。
http://nishimotz.github.io/nvdajp-book/
https://github.com/nishimotz/nvdajp-book
NVDA 日本語版ガイドブック
第4版 2014年12月25日

hello gist

練習