— Clone repository with submodules automatically:
git clone --recursive git@github.com:name/repo.git
— Initialize submodules after regular cloning:
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
def join_game(user_id, game_id) do | |
with {:user, {:ok, user}} <- {:user, Users.get(user_id)}, | |
{:game, {:ok, game}} <- {:game, Games.get(game_id)}, | |
{:full, false} <- {:full, Game.is_full?(game)}, | |
{:started, false} <- {:started, Game.is_started?(game)}, | |
{:allowed, true} <- {:allowed, User.has_permission?(user, game)} | |
do | |
Game.add_user(game, user) | |
else | |
{:user, :not_found} -> {:error, "User not found"} |
function whatDoesItDo(val){ | |
return val ? 1 : 2; | |
} |