Skip to content

Instantly share code, notes, and snippets.

set nocompatible " Be iMproved
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#rc(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
NeoBundleFetch 'Shougo/neobundle.vim'
@otukutun
otukutun / forecast.rb
Created February 7, 2014 03:53
livedoor_forecast_api
#!/usr/bin/env ruby
require 'rest_client'
require 'json'
forecast_json = RestClient.get 'http://weather.livedoor.com/forecast/webservice/json/v1?city=030010'
forecast = JSON.parse(forecast_json)
#puts forecast["forecasts"][0]["telop"]
puts forecast["forecasts"][0]