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
01.01 00:00 | 51 | 191 | 37 | 3 | |
---|---|---|---|---|---|
01.01 01:00 | 51 | 191 | 37 | 3 | |
01.01 02:00 | 51 | 191 | 37 | 3 | |
01.01 03:00 | 51 | 191 | 37 | 3 | |
01.01 04:00 | 51 | 191 | 37 | 3 | |
01.01 05:00 | 51 | 191 | 37 | 3 | |
01.01 06:00 | 51 | 191 | 37 | 3 | |
01.01 07:00 | 51 | 191 | 37 | 3 | |
01.01 08:00 | 51 | 191 | 37 | 3 | |
01.01 09:00 | 51 | 191 | 37 | 3 |
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
[01.02.2013 09:30:02] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 09:15:01] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 09:00:06] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 08:45:02] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 08:30:01] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 08:15:01] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 08:00:01] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 07:45:01] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 07:30:02] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) | |
[01.02.2013 07:15:02] ano: 25% (492), ano_ale: 4% (85), ne: 69% (1338), nevim: 0% (15) |
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 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'twitter' | |
class Kohoutovice | |
def self.scrape_poll_results | |
website = 'http://www.kohoutovice.cz/modules/xoopspoll/pollresults.php?poll_id=29' |
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
# How to detect sequence in an array | |
def is_sequence(arr): | |
"Return True if the array is sequence." | |
return (len(set(arr)) == len(arr)) and ((max(arr) - min(arr)) == (len(arr) - 1)) | |
def test(): | |
"Test cases for the functions in poker program." | |
"Test cases for the Array.sequence method." |
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 Player | |
DIRECTIONS = [ :forward, :backward, :left, :right ] | |
# this logs your path through the level | |
# PS: we might need this in order to return to safety when injured | |
PATH = [] | |
MIN_HEALTH = 18 | |
CRITICAL_HEALTH = 10 |