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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<h2>Temples</h2> | |
<div></div> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script type="text/javascript"> |
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
class TowersOfHanoi | |
attr_reader :towers | |
def initialize | |
@towers = [[4, 3, 2, 1], [], []] | |
end | |
def play | |
from = "" | |
while !win? |
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
require 'sinatra' | |
require 'shotgun' | |
class List | |
attr_reader :all_tasks | |
def initialize | |
@all_tasks = [] | |
puts 'You have created a new list' | |
end | |
def add(task, status=false) |
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
#!/usr/bin/env ruby | |
class List | |
attr_reader :all_tasks | |
def initialize | |
@all_tasks = [] | |
puts 'You have created a new list' | |
end | |
def add(task, status=false) | |
all_tasks << Task.new(task, status) |
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 decode(text) | |
decoded = '' | |
text.each_char do |s| | |
if (s =~ /[0-9]/) == 0 | |
text = text[s.to_i+1..-1] | |
decoded << text[0] | |
text = text[1..-1] | |
end | |
end |
I hereby claim:
- I am agnaite on github.
- I am agne (https://keybase.io/agne) on keybase.
- I have a public key whose fingerprint is 54CD 0E00 7554 E22F 4A5A A06F 4B81 79DA E874 B5B0
To claim this, I am signing this object:
NewerOlder