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
# 1. Railsプロジェクトの作成 | |
# rspecを使うので、testディレクトリを削除 | |
run 'rm -rf test' | |
# 不必要なファイルを削除 | |
# run "rm README.rdoc" | |
# 2. Gitにプロジェクトを登録 | |
#git :init | |
#git add: '.' | |
#git commit: %Q{ -m 'initial commit' } |
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
FROM debian:jessie | |
WORKDIR /root | |
RUN apt-get update -qq && apt-get upgrade -qq | |
RUN apt-get install -qq libmecab-dev git wget g++ make curl sudo | |
RUN apt-get install -qq mecab libmecab-dev mecab-ipadic-utf8 golang mercurial xz-utils file | |
RUN git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git | |
RUN cd mecab-ipadic-neologd && ( echo yes | ./bin/install-mecab-ipadic-neologd ) |
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
FROM ubuntu:14.04 | |
# proxyがある場合 | |
ENV http_proxy http://proxy_host:proxy_port | |
ENV https_proxy http://proxy_host:proxy_port | |
ENV no_proxy localhost | |
ENV HOME /root | |
RUN apt-get update -qq && apt-get install -y git wget graphviz graphviz-dev | |
RUN git clone https://github.com/yyuu/pyenv.git $HOME/.pyenv |
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
Rake::TaskManager.class_eval do | |
def alias_task(fq_name) | |
new_name = "#{fq_name}:original" | |
@tasks[new_name] = @tasks.delete(fq_name) | |
end | |
end | |
def alias_task(fq_name) | |
Rake.application.alias_task(fq_name) | |
end |
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 UIKit | |
import Social | |
import Accounts | |
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { | |
@IBOutlet var tableView: UITableView! | |
var accountStore = ACAccountStore() | |
var twAccount: ACAccount? |
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 UIKit | |
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { | |
@IBOutlet weak var tableView: UITableView! | |
let list: NSArray = ["rain", "cloud_sunny", "sunny", "cloudy"] | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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 UIKit | |
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { | |
@IBOutlet weak var tableView: UITableView! | |
// Tableで使用する配列を設定する | |
let myItems: NSArray = ["TEST1", "TEST2", "TEST3"] | |
override func viewDidLoad() { | |
super.viewDidLoad() |