View SimpleChatBot.py
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
class Chat: | |
vocabs = [ | |
"ああ、そうなんだー", | |
"へー", | |
"すごいねー" | |
] | |
negative = "いや、それは違うんじゃないかなーw" | |
farewell = ["またねー", "じゃあねー"] | |
def response(self): |
View test.patch
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
--- test.py.orig 2014-10-28 00:04:32.395997436 +0900 | |
+++ test.py 2014-10-28 00:04:55.396407628 +0900 | |
@@ -8,9 +8,9 @@ | |
sentence = "太郎はこの本を二郎を見た女性に渡した。" | |
-print c.parseToString(sentence) | |
+print(c.parseToString(sentence)) | |
tree = c.parse(sentence) |
View setup.patch
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
--- setup.py.orig 2014-10-27 23:13:54.149118580 +0900 | |
+++ setup.py 2014-10-27 23:32:14.945120395 +0900 | |
@@ -7,7 +7,7 @@ | |
return os.popen(str).readlines()[0][:-1] | |
def cmd2(str): | |
- return string.split (cmd1(str)) | |
+ return cmd1(str).split() | |
setup(name = "mecab-python", |
View mikutter.patch
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
--- PKGBUILD 2014-05-09 00:24:29.000000000 +0900 | |
+++ PKGBUILD.changed 2014-05-11 17:04:06.264283536 +0900 | |
@@ -20,6 +20,7 @@ | |
mkdir -p "$pkgdir/usr/bin" | |
cat <<'EOF' > "$pkgdir/usr/bin/mikutter" | |
#!/bin/sh | |
+export LC_MESSAGES="ja_JP.UTF-8" | |
ruby /opt/mikutter/mikutter.rb $@ | |
EOF | |
chmod a+x "$pkgdir/usr/bin/mikutter" |
View RT2870STA.dat.patch
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
--- mt7610u_wifi_sta_v3002_dpo_20130916.orig/RT2870STA.dat 2014-06-01 18:20:38.509258472 +0900 | |
+++ mt7610u_wifi_sta_v3002_dpo_20130916/RT2870STA.dat 2014-06-01 18:22:59.168086822 +0900 | |
@@ -1,10 +1,10 @@ | |
#The word of "Default" must not be removed | |
Default | |
-CountryRegion=5 | |
+CountryRegion=1 | |
CountryRegionABand=7 | |
-CountryCode= | |
+CountryCode=JP |
View gif.sh
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
#!/bin/sh | |
directory="./*" | |
for filepath in ${directory} | |
do | |
if [ ! -f ${filepath} ]; then | |
echo "${filepath}" | |
cd ${filepath} | |
convert *.png anime.gif |
View yotify.sh
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
#!/usr/bin/sh | |
token="<YOUR_API_TOKEN>" | |
name="<DESIRED_USERNAME>" | |
notifymsg="Yo from <SOURCE_Yo_NAME> to <DESTINATION_Yo_NAME>" | |
icon="/path/to/icon" | |
# do desired task | |
$@ |
View fcitx-mozc-ut.PKGBUILD
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
# Maintainer: Naoya Inada <naoina@kuune.org> | |
# fcitx-mozc-ut is based on fcitx-mozc and mozc-ut. | |
## | |
## Build configuration | |
## | |
## ニコニコ大百科IME辞書 (NICONICOPEDIA IME dictionary, see below) | |
#_NICODIC="true" | |
# | |
## If you want to use an English-Japanese dictionary, |
View mecab.setup.patch
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
--- setup.py.orig 2014-10-27 23:13:54.149118580 +0900 | |
+++ setup.py 2014-10-27 23:32:14.945120395 +0900 | |
@@ -7,7 +7,7 @@ | |
return os.popen(str).readlines()[0][:-1] | |
def cmd2(str): | |
- return string.split (cmd1(str)) | |
+ return cmd1(str).split() | |
setup(name = "mecab-python", |
View config
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 3.17.4-1 Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" | |
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
OlderNewer