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
module RenderFilter | |
extend ActiveSupport::Concern | |
included do | |
define_callbacks :process_render | |
end | |
public | |
def render(*args) | |
run_callbacks :process_render do |
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
wu24 | 24.345703125 | 123.92578125 | 沖縄県 | 八重山郡 | 竹富町 | 47381 | ||
---|---|---|---|---|---|---|---|---|
wudv | 26.279296875 | 127.79296875 | 沖縄県 | 中頭郡 | 中城村 | 47328 | ||
wuep | 26.630859375 | 128.14453125 | 沖縄県 | 国頭郡 | 東村 | 47303 | ||
wvh1 | 28.388671875 | 129.55078125 | 鹿児島県 | 奄美市 | 46222 | |||
wvku | 30.322265625 | 130.60546875 | 鹿児島県 | 熊毛郡 | 屋久島町 | 46505 | ||
wvmj | 30.498046875 | 130.95703125 | 鹿児島県 | 熊毛郡 | 中種子町 | 46501 | ||
wvmn | 30.673828125 | 130.95703125 | 鹿児島県 | 西之表市 | 46213 | |||
wvsc | 31.201171875 | 130.60546875 | 鹿児島県 | 指宿市 | 46210 | |||
wvt1 | 31.201171875 | 130.95703125 | 鹿児島県 | 肝属郡 | 肝付町 | 46492 | ||
wvsd | 31.376953125 | 130.25390625 | 鹿児島県 | 南さつま市 | 46220 |
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
// 取得するJSONのURL | |
var url = "http://api.openweathermap.org/data/2.5/weather?lat=35.65858&lon=139.745433"; | |
// データを保存するシート | |
var data_sheet_name = 'data'; | |
// アップデートするチャートの名前 | |
var chart_sheet_name = 'charts'; | |
var chart_name = 'Temps'; |
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
Tracer.server PORT, HOST, :wait => true | |
Tracer.client PORT, HOST, :wait => true |
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
app.on(:resume) do | |
... | |
end | |
# app code | |
tableView = TableView.new | |
tableView.on(:select) do |v| | |
... | |
end | |
tableView.on(:cell) do |v, index| |
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
OVERVIEW: LLVM 'Clang' Compiler: http://clang.llvm.org | |
USAGE: clang -cc1 [options] <inputs> | |
OPTIONS: | |
-### Print the commands to run for this compilation | |
--analyze Run the static analyzer | |
--migrate Run the migrator | |
--relocatable-pch Build a relocatable precompiled header | |
--serialize-diagnostics <value> |
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, this, 17544 | |
2, that, 15950 | |
3, have, 9742 | |
4, with, 9584 | |
5, http, 8688 | |
6, node, 6024 | |
7, should, 5743 | |
8, error, 4285 | |
9, test, 4209 | |
10, work, 4175 |
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
#!/usr/bin/env ruby | |
# result | |
# https://docs.google.com/spreadsheet/ccc?key=0AldcEqcUVyo4dGZNOE9fTlE0YkZ2U2NTSF9jTmlJbkE&usp=sharing | |
require 'date' | |
filesizes = [] | |
date = Date.new(2012,5,1) | |
while date < Date.today |
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
# -*- coding: utf-8 -*- | |
# | |
require 'rubygems' | |
require 'xcodeproj' | |
FRAMEWORKS = %w{ | |
AudioToolbox | |
CFNetwork | |
CoreGraphics | |
CoreLocation |
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
class Command | |
def initialize(default_options = {}) | |
... | |
end | |
def run(options, params={}) | |
... | |
end | |
end |