This file contains 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
var GEO_LOCATION = { | |
watchID: null, | |
callback: null | |
}; | |
GEO_LOCATION.mySpot = function(position){ | |
var lat = (position.coords) ? new String(position.coords.latitude) : position.x; | |
var lon = (position.coords) ? new String(position.coords.longitude) : position.y; | |
return GEO_LOCATION.callback(lat, lon); | |
} |
This file contains 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
[ | |
"AA BOX, | |
49.19379, | |
-2.03498, | |
2323, | |
3, | |
1", | |
"AALSMEER, | |
49.22448, | |
-2.06781, |
This file contains 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
# Critical default settings: | |
disable_system_gems | |
disable_rubygems | |
bundle_path '.gems/bundler_gems' | |
# List gems to bundle here: | |
gem 'rails_dm_datastore' | |
gem 'rails', "2.3.5" | |
# Needed for Devise-Plugin |
This file contains 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
{ | |
"links":{ | |
"self":"/orders", | |
"link-docs":[ | |
{ | |
"name":"v1", | |
"href":"http://api.example.com/docs/v1/{link}", | |
"templated":true | |
} | |
], |
This file contains 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
def create | |
card = current_user.credit_cards.create(card_params) | |
if card.persisted? | |
render :success | |
else | |
render :failure | |
end | |
end |
NewerOlder