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
# Customize and Export as Application | |
set device_name to "My iPhone" | |
tell application "Safari" | |
activate | |
tell application "System Events" | |
click menu item "index.html" of menu device_name of menu item device_name of menu "Develop" of menu bar item "Develop" of menu bar 1 of application process "Safari" | |
end tell | |
end tell |
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
defmodule RobotSimulator do | |
@directions [:north, :east, :south, :west] | |
@doc """ | |
Create a Robot Simulator given an initial direction and position. | |
Valid directions are: `:north`, `:east`, `:south`, `:west` | |
""" | |
@spec create(direction :: atom, position :: {integer, integer}) :: any | |
def create(direction \\ :north, position \\ {0, 0}) |
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
# Juego para niñas y niños de ~5 años | |
# Cada jugador tiene un cartón y marca las letras que van saliendo | |
# El primer jugador en marcar todos los números, gana! | |
# | |
# PD, con más edad, también es divertido tocar el código para que haga otras cosas… | |
# | |
# COMO USAR: | |
# Abrir `Terminal.app` (En Aplicaciones > Utilidades) | |
# Teclear el comando `irb` | |
# Pegar el código para jugar |
OlderNewer