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
link_to raw("We" + image_tag('heart.png') + " Feedback") | |
# generates | |
# <a class="footer_link" href="/feedback">We<img alt="Heart" src="/images/heart.png?1297276993" /> Feedback</a> |
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 'socket' | |
puts "Please enter host:" | |
hostname = STDIN.gets.chop # Read host and remove the newline | |
port = 80 | |
s = TCPSocket.open(hostname, port) | |
s.write("HEAD / HTTP/1.0\n") |
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 'socket' | |
puts "Please enter host:" | |
hostname = STDIN.gets.chop # Read host and remove the newline | |
port = 80 | |
s = TCPSocket.open(hostname, port) | |
s.write("HEAD / HTTP/1.0\n") |
NewerOlder