I hereby claim:
- I am iewnait on github.
- I am iewnait (https://keybase.io/iewnait) on keybase.
- I have a public key whose fingerprint is 834B 19F6 D6E9 B944 B61F 650A 9526 4030 EAF1 391D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| : | |
| Test Plan: | |
| Reviewers: | |
| Subscribers: | |
| # CC: |
| set :stages, %w(production sandbox) | |
| set :default_stage, "sandbox" | |
| require 'capistrano/ext/multistage' | |
| set :application, "blogtest" | |
| set :repository, "git@github.com:iewnait/blogtest.git" | |
| default_run_options[:pty] = true | |
| set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names |
| { | |
| "title" : "my_pane_title", | |
| "groups" : [ | |
| { | |
| "title" : "my_group_title", | |
| "preferences" : [ | |
| { | |
| "name" : "my_pref", | |
| "type" : "integer", | |
| "control" : "select", |
| String[] projections = new String [] { | |
| WorldClock.Columns.CITY_UID, | |
| WorldClock.Columns.NAME, | |
| WorldClock.Columns.LONGITUDE, | |
| WorldClock.Columns.TIMEZONE | |
| } | |
| String selection = WorldClock.Columns.TIMEZONE + " = '?'"; | |
| String[] selectionArgs = new String[] {"Asia/Tokyo"}; |
| // Set this to null to get all Column. | |
| String[] projections = new String [] { | |
| WorldClock.Columns.CITY_UID, | |
| WorldClock.Columns.NAME, | |
| WorldClock.Columns.LONGITUDE, | |
| WorldClock.Columns.TIMEZONE | |
| }; | |
| Cursor cur = WorldClock.query(getContext().getContentResolver(), | |
| projections |
| String[] projections = new String [] { | |
| Weather.Columns.CITY_UID, | |
| Weather.Columns.NAME, | |
| Weather.Columns.DATE, | |
| Weather.Columns.TEMP_HIGH, | |
| Weather.Columns.TEMP_LOW, | |
| Weather.Columns.LONGITUDE, | |
| Weather.Columns.LATITUDE | |
| }; |
| Cursor cur = Weather.query(getContext().getContentResolver(), | |
| null | |
| ); | |
| while (cur.moveToNext()) { | |
| Weather.WeatherInfo wi = Weather.getWeatherInfoFromCursor(cur); | |
| // Do something useful with the weather info. | |
| } |
| // Set time to the same time tomorrow. | |
| Time date = new Time(); | |
| date.setToNow(); | |
| date.weekDay = date.weekDay + 1; | |
| Calendar.Event[] events = Calendar.Events.getEventsOnDay(getContext().getContentResolver(), | |
| date | |
| ); | |
| // Do something useful with these events. |
| // Set time to the same time tomorrow. | |
| Time date = new Time(); | |
| date.setToNow(); | |
| date.weekDay = date.weekDay + 1; | |
| Cursor cur = Calendar.Events.getEventCursorForDay(getContext().getContentResolver(), | |
| date | |
| ); | |
| while (cur.moveToNext()) { |