Congratulations, ziekfiguur!
It was fun to code IRC bot. Thank you, Queue29 for cool programming task.
Type: Posts; User: CuracaoThe; Keyword(s):
Congratulations, ziekfiguur!
It was fun to code IRC bot. Thank you, Queue29 for cool programming task.
Written in Ruby. You also can read the source code on GitHub (for more convenience).
require 'socket'
require 'open-uri'
=begin
Really infirm IRC bot implementation.
Written in Ruby language:
# Warning! Not precise implementation due to my coding ability.
require 'optparse'
require 'ostruct'
require 'etc'
=begin
My solution written in Ruby. Sorry for cluttering your thread, but maybe someone would be interested in this.
class ForumMember
attr_accessor :input, :output
attr_reader :name, :age,...
Written in Ruby
def read_from_file(path)
lines = IO.readlines(path) {|l| l.chomp}
end
lines = read_from_file("collector.txt")
numbers_sum = 0
Written in Ruby:
class AdvancedGuesser
module Message
class << self
def welcome_message
puts "+---------------------------------------+",
"| Welcome to the...
My first Lisp program ever:
(setf *random-state* (make-random-state t))
(format t "Guess the secret number (from 1 to 100):")
(defvar secret_number (+ (random 100) 1))
(loop for i do
...
Written in Ruby:
require 'open-uri'
module PageScrape
def self.start_scraping(url="http://www.tomayko.com/")
# Either open an url from command line argument
I know, I'm late, but you didn't close the thread, so here's my solution, written in Ruby:
puts "Guess the secret number (from 1 to 100):"
secret_number = rand(100) + 1
...
I've solved my problem by upgrading GRUB to version 2. Then I've used the 2.6.31-14 kernel for boot Linux.
$ uname -r
2.6.31-14-genericHowever my computer had frozen until I wrote an ACPI...
Have the same problem.
sudo aplay -l
aplay: device_list:223: no soundcards found...
$ lsb_release -a && uname -r
No LSB modules are available.
Distributor ID: Ubuntu
Description: ...