- Recurrent Neural Network
- 再起型ニューラルネットワーク
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
tap "heroku/brew" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
brew "autoconf" | |
brew "automake" | |
brew "awscli" | |
brew "glib" | |
brew "pkg-config" | |
brew "libtool" |
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/env python | |
# -*- coding: utf-8 -*- | |
from flask import * | |
import os | |
from werkzeug import secure_filename | |
app = Flask(__name__) | |
#searchword = request.args.get('q', '') |
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/env python | |
# -*- coding: utf-8 -*- | |
from tornado.wsgi import WSGIContainer | |
from tornado.ioloop import IOLoop | |
from tornado.web import FallbackHandler, RequestHandler, Application | |
from wsgi import app | |
class MainHandler(RequestHandler): | |
def get(self): |
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
2013-04-25 10:51:13 +0900 [info]: adding source type="forward" | |
2013-04-25 10:51:13 +0900 [info]: adding source type="http" | |
2013-04-25 10:51:13 +0900 [info]: adding source type="debug_agent" | |
2013-04-25 10:51:13 +0900 [info]: adding match pattern="td.*.*" type="tdlog" | |
2013-04-25 10:51:13 +0900 [info]: adding match pattern="debug.**" type="stdout" | |
2013-04-25 10:51:13 +0900 [info]: listening fluent socket on 0.0.0.0:24224 | |
2013-04-25 10:51:13 +0900 [error]: unexpected error error="Address already in use - bind(2)" | |
2013-04-25 10:51:13 +0900 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.33/lib/fluent/plugin/in_http.rb:75:in `initialize' | |
2013-04-25 10:51:13 +0900 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.33/lib/fluent/plugin/in_http.rb:75:in `new' | |
2013-04-25 10:51:13 +0900 [error]: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.33/lib/fluent/plugin/in_http.rb:75:in `start' |
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
//JSでランダムなキーをつくる | |
var randobet = function(n, b) { | |
b = b || ''; | |
var a = 'abcdefghijklmnopqrstuvwxyz' | |
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
+ '0123456789' | |
+ b; | |
a = a.split(''); | |
var s = ''; | |
for (var i = 0; i < n; i++) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
.list{ | |
width: 250px; | |
display: block; | |
} | |
</style> |
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
import simplejson | |
## 書き出し | |
sample = {"@title": "みんなのPython", "author": "柴田淳", "pub": ["SoftBank Creative", "2006"]} | |
file = open("sample.json", "w") | |
simplejson.dump(sample, file, indent=3) | |
## sample.jsonの中身 | |
#{ | |
# "@title": "みんなのPython", | |
# "pub": [ |
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
import datetime | |
import time | |
int(time.mktime(datetime.datetime(2012, 3, 3, 22, 0, 57).timetuple())) |
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
# import datetime | |
# import time | |
# date = datetime.datetime(*time.localtime(1111111111)[:-3]).strftime('%Y/%m/%d %H:%M:%S') |
NewerOlder