Skip to content

Instantly share code, notes, and snippets.

View makotoworld's full-sized avatar
😉
Happy Coding!

nzk makotoworld

😉
Happy Coding!
View GitHub Profile
@makotoworld
makotoworld / Brewfile
Created November 11, 2021 06:21
Brew bundle
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"
@makotoworld
makotoworld / 単語.md
Last active March 7, 2020 08:31
ディープラーニング G検定

LDA

BPTT

CTC

LSTM

RNN

  • Recurrent Neural Network
  • 再起型ニューラルネットワーク

CNN

require 'open-uri'
require 'nokogiri'
# スクレイピング先のURL
url = 'http://ishidatozanjukunisshi.blogspot.jp'
#url = 'http://ishidatozanjukunisshi.blogspot.jp/search?updated-max=2010-06-20T21:17:00%2B09:00&max-results=7&start=985&by-date=false'
charset = nil
def url_set(url)
html = open(url) do |f|
Write
id
title
created
user_id
file_id
File
id
file_type
@makotoworld
makotoworld / gist:5456943
Created April 25, 2013 01:53
td-agent の fluent.log
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'
//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++) {
@makotoworld
makotoworld / yalp.html
Last active December 10, 2015 04:08
YOLP版 Map
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.list{
width: 250px;
display: block;
}
</style>
@makotoworld
makotoworld / gist:4334367
Created December 19, 2012 04:23
python で json を解析、出力する
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": [
@makotoworld
makotoworld / gist:4159459
Created November 28, 2012 06:42
python で指定日時をエポック秒に変換する
import datetime
import time
int(time.mktime(datetime.datetime(2012, 3, 3, 22, 0, 57).timetuple()))
@makotoworld
makotoworld / gist:4129898
Created November 22, 2012 07:58
python でエポック秒を好きなフォーマットで出力する
# import datetime
# import time
# date = datetime.datetime(*time.localtime(1111111111)[:-3]).strftime('%Y/%m/%d %H:%M:%S')