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
# 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 |
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
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 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 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
Request timeout for icmp_seq 219 | |
Request timeout for icmp_seq 220 | |
Request timeout for icmp_seq 221 | |
Request timeout for icmp_seq 222 | |
Request timeout for icmp_seq 223 | |
Request timeout for icmp_seq 224 | |
Request timeout for icmp_seq 225 | |
Request timeout for icmp_seq 226 | |
Request timeout for icmp_seq 227 | |
Request timeout for icmp_seq 228 |
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
rails c test | |
ActiveRecord::Base.logger.level = Logger::WARN | |
require 'rspec' | |
reload! ; RSpec::Core::Runner.run ["spec"] | |
reload! ; RSpec::Core::Runner.run ["spec"] | |
reload! ; RSpec::Core::Runner.run ["spec"] | |
reload! ; RSpec::Core::Runner.run ["spec"] | |
reload! ; RSpec::Core::Runner.run ["spec"] | |
reload! ; RSpec::Core::Runner.run ["spec"] |
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
int numberOfThingsThatAreSorted = getCustomComparatorNumberOfKnownThingsForSorting(); | |
int numberOfActualThings = getAllThings().size(); | |
if (numberOfThingsThatAreSorted < numberOfActualThings) | |
throw new IllegalStateException( | |
"An implementation of ThisClass (whose abstract subclasses are ThatOtherClass and YetAnotherClass) " | |
+ "must ensure that all the Things it specifies are also passed in for custom sorting. Instead found only " | |
+ numberOfThingsThatAreSorted | |
+ " Things to be sorted, as implemented by getCustomComparatorNumberOfKnownThingsForSorting, but " | |
+ numberOfActualThings + " actual Things."); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Abel Muiño Vizcaino"> | |
<style> | |
body { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Abel Muiño Vizcaino"> | |
<style type="text/css" media="screen"> | |
body { |
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
http://alltogether.es/category/proyectos/pymeprivee-proyectos/ |
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
# It is 00:15 | |
ruby-1.9.2-p180 :025 > Time.now | |
=> 2011-03-31 00:15:10 +0200 | |
# Today is 31st of March | |
ruby-1.9.2-p180 :023 > Date.today | |
=> Thu, 31 Mar 2011 | |
# Yesterday was 29 of March ????? WTF!!! | |
ruby-1.9.2-p180 :024 > Date.yesterday |
NewerOlder