Skip to content

Instantly share code, notes, and snippets.

@nosada
nosada / RT2870STA.dat.patch
Last active Aug 29, 2015
patchs for mt7610u_wifi_sta_v3002_dpo_20130916
View RT2870STA.dat.patch
--- 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
@nosada
nosada / mikutter.patch
Created May 11, 2014
patch for mikutter 3.0.0 (or later?) distributed on AUR to translate Japanese
View mikutter.patch
--- 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"
@nosada
nosada / setup.patch
Last active Aug 29, 2015
patch for cabocha-0.68/python/setup.py
View setup.patch
--- 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",
@nosada
nosada / test.patch
Last active Aug 29, 2015
patch for cabocha-0.68/python/test.py
View test.patch
--- 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 SimpleChatBot.py
class Chat:
vocabs = [
"ああ、そうなんだー",
"へー",
"すごいねー"
]
negative = "いや、それは違うんじゃないかなーw"
farewell = ["またねー", "じゃあねー"]
def response(self):