Skip to content

Instantly share code, notes, and snippets.

View takano32's full-sized avatar
🌏

TAKANO Mitsuhiro takano32

🌏
View GitHub Profile
@takano32
takano32 / beer.lisp
Created September 23, 2018 23:11 — forked from elderica/beer.lisp
(in-package #:cl-user)
(defpackage #:beer
(:use #:common-lisp)
(:export #:verse #:sing))
(in-package #:beer)
;; [*endpoint-min*, *endpoint-max*] in notations for intervals.
(defparameter *endpoint-max* 99)
(defparameter *endpoint-min* 0)
@takano32
takano32 / at_coder.rb
Created September 10, 2018 06:16
AtCoder のサンプルコード
#!/usr/bin/env ruby
#
# AtCoder の環境では '--disable-gems' で Ruby が起動
def at_coder?
not defined? Gem
end
# ローカルでは MiniTest でテストが走るようにする
@takano32
takano32 / a.rb
Last active August 22, 2018 04:06
AtCoder - practice 1
#!/usr/bin/env ruby
#
# AtCoder の環境では '--disable-gems'
def at_coder?
not defined? Gem
end
# AtCoder では MiniTest が消されている
remote:
remote: ========================================================================
remote:
remote: We are currently deploying GitLab EE 10.3.0-rc5.
remote: For status updates, please follow https://twitter.com/GitLabStatus
remote:
remote: ========================================================================
remote:
@takano32
takano32 / .zshrc
Created June 17, 2017 18:02
include oh-my-zsh in .zshrc
if [ -f "$HOME/.zshrc.oh-my-zsh" ]; then
DISABLE_AUTO_UPDATE="true"
. "$HOME/.zshrc.oh-my-zsh"
fi
takano32/public_html/tips/Ruby/mod.dir
takano32/public_html/tips/Ruby/hoge.rb
takano32/public_html/tips/Ruby/mod.pag
takano32/public_html/tips/Ruby/aftp.rb
takano32/public_html/tips/Ruby/count_thread.rb
takano32/public_html/tips/Ruby/here.rb
takano32/public_html/tips/Ruby/mod.db
takano32/public_html/tips/Ruby/times.rb
takano32/public_html/tips/Ruby/mtime.rb
takano32/public_html/tips/Ruby/ipconfig.rb
config/nim.cfg(42, 3) Hint: added path: '/Users/takano32/.nimble/pkgs/nimlz4-0.1.0' [Path]
config/nim.cfg(42, 3) Hint: added path: '/Users/takano32/.nimble/pkgs/nimsnappy-0.1.0' [Path]
config/nim.cfg(42, 3) Hint: added path: '/Users/takano32/.nimble/pkgs/' [Path]
config/nim.cfg(44, 5) Hint: added path: '/opt/nimble/pkgs/' [Path]
Hint: used config file '/usr/local/Cellar/nim/0.15.2/nim/config/nim.cfg' [Conf]
Hint: used config file '/Users/takano32/GitHub/spry/src/nim.cfg' [Conf]
Hint: used config file 'ide.nim.cfg' [Conf]
Hint: system [Processing]
Hint: ide [Processing]
Hint: spryvm [Processing]
@takano32
takano32 / hey_koike.rb
Created August 25, 2016 13:53
変なのでてきた
require 'mechanize'
require 'hpricot'
require 'uri'
class HeyKoike
Mechanize.html_parser = Hpricot
URI = URI.parse(%q!http://kamome.2ch.net/test/read.cgi/art/1308547784/!)
def initialize
@agent = Mechanize.new
@agent.user_agent_alias = 'Mac Safari'
@takano32
takano32 / # emacs - 2016-07-19_16-23-06.txt
Created July 19, 2016 07:30
emacs on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for emacs on Mac OS X 10.11.6
Build date: 2016-07-19 16:23:06
@takano32
takano32 / codeiq39.rb
Last active July 19, 2016 00:42
階乗フィーバー数問題
#!/usr/bin/env ruby
# http://riverplus.net/39/
# https://twitter.com/riverplus/status/754322322220158977
#
class Factorial
@@f = 1
@@now = 0