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/env python | |
#-*- coding:utf-8 -*- | |
import MeCab | |
m = MeCab.Tagger("-Ochasen") | |
string = u"それサバンナでも同じ事言えんの?" | |
# MeCabでUnicode文字列を扱う場合は、一度エンコードする必要がある。 | |
# この際、 | |
# node = tagger.parseToNode(string.encode("utf-8")) |
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
license: gpl-3.0 |
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
// Content Script to save data. | |
chrome.extension.sendRequest({storage: 'foo', value: 'bar'}); | |
// Content Script to get data. | |
chrome.extension.sendRequest({storage: 'foo'}, function(response) { | |
console.log('foo => ' + response.storage); | |
}); | |
// Background Page |
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
import sys | |
from flask import Flask,request,render_template, g, flash, send_from_directory | |
import datetime | |
import locale | |
from sqlite3 import dbapi2 as sqlite3 | |
from werkzeug import secure_filename | |
DATABASE = "./tmp/fileserver.db" | |
TMP_FOLDER = "./tmp/" | |
app = Flask(__name__) |
NewerOlder