Skip to content

Instantly share code, notes, and snippets.

View KenYurino's full-sized avatar

Ken Yurino KenYurino

  • Kanagawa, Japan
View GitHub Profile
@KenYurino
KenYurino / Info.plist
Last active January 21, 2016 02:01
swiftで現在地と目的地を結ぶ経路を地図に表示する ref: http://qiita.com/yuriken27@github/items/6362bfaa93548b643aa6
<plist version="1.0">
<dict>
・・・ここから・・・
<key>NSLocationAlwaysUsageDescription</key>
<string>I have learned more on stack overflow than anything else</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>The spirit of stack overflow is coders helping coders</string>
・・・ここまで・・・
@KenYurino
KenYurino / file0.txt
Last active August 29, 2015 14:04
MKMapViewでルート表示するときに、ルート全体が入るように地図のズームを設定する ref: http://qiita.com/yuriken27@github/items/3b8621e2e688a8f00399
-(void) showUserAndDestinationOnMap:(CLLocationCoordinate2D)userLocation
{
double leastCoordSpan = 0.005; // 拡大表示したときの最大値
double maxLat = userLocation.latitude;
double maxLon = userLocation.longitude;
double minLat = info.latitude;
double minLon = info.longitude;
CLLocationCoordinate2D polyCoord;
@KenYurino
KenYurino / Gemfile.lock
Created July 27, 2014 01:43
rspec-rails 3.0.0で「Could not load generator "generators/rspec/install/install_generator"」が出たときの対応 ref: http://qiita.com/yuriken27@github/items/30bc7dde013cc0812d4c
rspec-rails (3.0.2)