Skip to content

Instantly share code, notes, and snippets.

View juntaki's full-sized avatar

Jumpei Takiyasu juntaki

View GitHub Profile
@juntaki
juntaki / GPATH
Created January 8, 2017 13:12
GNU GLOBALでgolangの関数呼び出し行にタグジャンプする ref: http://qiita.com/juntaki/items/d52c328ab6e59f90e98b
juntaki@ubuntu ~/g/g/test> sqlite3 -header -column GPATH "select * from db;"
key dat extra
----------- ------------- ----------
__.VERSION __.VERSION 2
./main.c 1
1 ./main.c
./main2.c 2
2 ./main2.c
__.NEXTKEY 3
#!/usr/bin/ruby
require 'rubygems'
require 'mechanize'
require 'kconv'
if(ARGV[0]==nil)
exit(0)
end
require 'mechanize'
require 'twitter'
# Get N255 from yahoo finance
agent = Mechanize.new
agent.get('http://stocks.finance.yahoo.co.jp/stocks/detail/?code=998407.O')
n225 = agent.page.at("td[@class='stoksPrice']").inner_text.delete(",")
# Get Twitter key and token from file
apikey = ARGF.readlines.map! { |key| key.chomp }
require "gnuplot"
require "fftw3"
io = File.open("/bin/bash", "rb")
test = io.read(500000)
test.size # => 500000
y = test.unpack("S!*")
x = [*0..y.size]
Gnuplot.open do |gp|
@juntaki
juntaki / hamburger_or_bicycle.ipynb
Last active July 14, 2016 14:24
hamburger_or_bicycle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juntaki
juntaki / keras-cifar10.ipynb
Last active July 3, 2016 14:40
keras-cifar10 dropout
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juntaki
juntaki / keras-mnist.ipynb
Created June 22, 2016 14:27
keras-mnist.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.