'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]:
attempt to insert nil value (key: WebKitLocalStorageDatabasePathPreferenceKey)'
This file contains hidden or 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
| #if DEBUG | |
| NSLog(@"development mode"); | |
| #else | |
| NSLog(@"production mode"); | |
| #endif |
This file contains hidden or 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
| window.App = | |
| Models: {} | |
| Collections: {} | |
| Views: {} | |
| Routers: {} | |
| init: (options)-> | |
| options = {} unless options | |
| options.pushState = true | |
| options.hashChange = false # don't want to rewrite /pathname to #pathname |
This file contains hidden or 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
| My::Application.routes.draw do | |
| resources :groups do | |
| resources :tasks | |
| end | |
| end |
This file contains hidden or 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
| user = User.where(name: params[:name]).first | |
| return unless user.present? | |
| main_blog = user.main_blog | |
| return unless main_blog.present? |
This file contains hidden or 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
| search_reservation_departure GET /reservation/departure(.:format) departures#search {:destination=>/\w+/} | |
| reservation_departure GET /reservation/departure(.:format) departures#show | |
| search_reservation_arrival GET /reservation/arrival(.:format) arrivals#search {:source=>/\w+/} | |
| reservation_arrival GET /reservation/arrival(.:format) arrivals#show | |
| new_reservation GET /reservation/new(.:format) reservations#new |
This file contains hidden or 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 PiyoPiyo | |
| end |
This file contains hidden or 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 Modules::Groups | |
| def self.included base | |
| if true | |
| base.skip_filter | |
| end | |
| end | |
| end |
This file contains hidden or 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
| id subview = [[_webView subviews] objectAtIndex:0]; | |
| if([[subview class] isSubclassOfClass:[UIScrollView class]]){ | |
| ((UIScrollView *)subview).bounces = NO; | |
| } |
This file contains hidden or 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
| [[NSNotificationCenter defaultCenter] addObserver: self | |
| selector: @selector(receiveShouldStartLoad:) | |
| name: @"shouldStartLoad" | |
| object: nil]; |