by shigemk2

当面は技術的なことしか書かない

2013-10-04から1日間の記事一覧

jqコマンドが存外に便利かもしれないという話

Mac

JSONを表示さすURLをcurlで叩いたときはこんな感じになると思うんです。 $ curl http://restro.nalwaya.com/restaurants/search.json\?city\=Chicago [{"name":"Dolalli","thumb_url_image":"http://restro.nalwaya.com/system/restaurants/avatars/000/000/…

style:UITableViewStylePlain vs style:UITableViewStyleGrouped on UITableView

@myTableView = UITableView.alloc.initWithFrame(view.bounds, style:UITableViewStyleGrouped) @myTableView = UITableView.alloc.initWithFrame(view.bounds, style:UITableViewStylePlain)

accessorの書き方とかメモ

インスタンス変数を読み書きするときのメモ。attr_accessor (Module) - Rubyリファレンス # -*- coding: utf-8 -*- class Book attr_accessor :price attr_reader :title attr_writer :desc def initialize(title, price, desc) @title = title; @price = pr…