http://qiita.com/umamichi/items/6ce4f46c1458e89c4cfc
・クロスプラットフォーム型の実行フレームワーク
👉 Mac、Windows、Linux上で動く
| web: vendor/bin/heroku-php-apache2 public/ |
http://qiita.com/umamichi/items/6ce4f46c1458e89c4cfc
・クロスプラットフォーム型の実行フレームワーク
👉 Mac、Windows、Linux上で動く
| require "google/api_client" | |
| require "google_drive" | |
| session = GoogleDrive.saved_session("config.json") | |
| ws = session.spreadsheet_by_key("pz7XtlQC-PYx-jrVMJErTcg").worksheets[0] | |
| # Gets content of A2 cell. | |
| p ws[2, 1] #==> "hoge" | |
| # Changes content of cells. | |
| # Changes are not sent to the server until you call ws.save(). |
| # これを config/application.rb 内にコペピする | |
| # 参考: http://guides.rubyonrails.org/generators.html#customizing-your-workflow-by-changing-generators-templates | |
| config.generators do |g| | |
| g.controller helper: false, assets: false | |
| g.rspec view_specs: false, helper_specs: false | |
| end |
| require 'formula' | |
| class Grep < Formula | |
| url 'http://ftp.gnu.org/gnu/grep/grep-2.18.tar.xz' | |
| sha1 'fdb12580714966745635da7d9db55060f88db28b' | |
| version '2.18' | |
| depends_on 'pcre' | |
| def install |
| " 定数を使いたい | |
| let lst = ['a', 'b', 'c'] | |
| lockvar lst " 変数を書き換えられないようにする | |
| " let lst[0] = 'd' -> ERROR! | |
| unlockvar lst " 解除 | |
| " Vim script以外のファイルを読み込みたいとき | |
| " 結果はファイルの行がリストとしてかえる | |
| let lst = readfile('hogehoge.txt') |
| .. | |
| .::::. | |
| ___________ :;;;;:`____________ | |
| \_________/ ?????L \__________/ | |
| |.....| ????????> :.......' | |
| |:::::| $$$$$$"`.:::::::' , | |
| ,|:::::| $$$$"`.:::::::' .OOS. | |
| ,7D|;;;;;| $$"`.;;;;;;;' .OOO888S. | |
| .GDDD|;;;;;| ?`.;;;;;;;' .OO8DDDDDNNS. | |
| 'DDO|IIIII| .7IIIII7' .DDDDDDDDNNNF` |
| class SecretController < ApplicationController | |
| before_filter :authenticate_user! | |
| def show | |
| end | |
| end |
| 更新: | 2013-11-01 |
|---|---|
| バージョン: | 0.0.1 |
| 作者: | @voluntas |
| URL: | http://voluntas.github.io/ |
概要
Vim Advent Calendar 2012 の254日目の記事です。昨日の記事はcohamaさんで、明日の記事はmanga_osyoさんの予定です。
さて、前回
今日は8月6日ですね。さて問題です。「2013年8月6日からVim Advent Calendar 2012とVim Advent Calendar 2013が並走開始する日まで何日か」をVim scriptで計算してください。
大前提として、Vim Advent Calendar 2013は2013年12月1日に確実に開始するものとします。また、Vim Advent Calendar 2012は、http://atnd.org/events/33746 にかかれているように