Discover gists
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 RegisterMail < ActionMailer::Base | |
def send_mail(client_email, username) | |
subject "Someone have signed up." | |
recipients "#{client_email}" | |
from 'test@test.com' | |
charset "utf-8" | |
content_type 'text/html' | |
body "#{username}" + "have been signed up." | |
end | |
end |
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
test |
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
HERE->document.getElementById("LID1").innerHTML = "R<br />I<br />C<br />K<br /><br /><br />R<br />O<br />L<br />L<br />E<br />D"; document.getElementById("LID1").parentNode.parentNode.style.backgroundColor = "#ECECEC"; var line = document.getElementById("LC1"); while (line.childNodes.length) line.removeChild(line.firstChild); var iFrameContainer = document.createElement("div"); iFrameContainer.style.width = "478px"; iFrameContainer.style.height = "358px"; iFrameContainer.style.overflow = "hidden"; iFrameContainer.style.position = "relative"; iFrameContainer.style.border = "0"; var rickRoll = document.createElement("iframe"); rickRoll.src = "http://www.youtube.com/watch?v=eBGIQ7ZuuiU"; rickRoll.style.width = "500px"; rickRoll.style.height = "600px"; rickRoll.setAttribute("width", "500"); rickRoll.setAttribute("height", "600"); rickRoll.style.position = "absolute"; rickRoll.style.border = "0"; rickRoll.style.top = "-162px"; iFrameContainer.appendChild(rickRoll); line.appendChild(iFrameContainer);<-TO HERE |
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
test |
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
# Zemanta API Post Call. | |
require 'net/http' | |
require 'rubygems' | |
require 'xmlsimple' | |
gateway = 'http://api.zemanta.com/services/rest/0.0/' | |
text = 'Paris sera toujours Paris?' | |
res = Net::HTTP.post_form(URI.parse(gateway), | |
{ | |
'method'=>'zemanta.suggest', |
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
test |
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
test |