A Pen by malditojavi on CodePen.
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
<body> | |
<h1 i>Lenovo Desktop Computer</h1> | |
<div >We do price match! Contact us to get a better deal</div> | |
</body> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hack Get More Sales</title> | |
</head> | |
<body> | |
<h1>Lenovo Desktop Computer</h1> | |
</body> | |
</html> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hack Block Scroll</title> | |
<link href="css/main.css" rel="stylesheet"> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> | |
</script> |
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
%FIRSTNAME|UPPERFIRST% |
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 'watir-webdriver' | |
begin | |
# Specify the driver path | |
chromedriver_path = File.join(File.absolute_path('/Users/malditojavi/', File.dirname(__FILE__)),"downloads","chromedriver") | |
Selenium::WebDriver::Chrome.driver_path = chromedriver_path | |
# Start the browser as normal | |
browser = Watir::Browser.new :chrome |
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 'watir-webdriver' | |
require 'watir-webdriver' | |
# Specify the driver path | |
chromedriver_path = File.join(File.absolute_path('set/your/path', File.dirname(__FILE__)),"downloads","chromedriver") | |
Selenium::WebDriver::Chrome.driver_path = chromedriver_path | |
# Start the browser as normal |
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
before_create do | |
self.invite_key ||= SecureRandom.hex | |
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
t.string :invite_key, null: false, limit: 32 | |
t.string :email, null: false | |
t.integer :invited_by_id, null: 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
# If they were invited to a topic | |
if first_topic.present? | |
build_email(invite.email, | |
template: 'invite_mailer', | |
invitee_name: invite.invited_by.username, | |
invite_link: "#{Discourse.base_url}/invites/#{invite.invite_key}", | |
topic_title: first_topic.try(:title)) | |
else | |
build_email(invite.email, | |
template: 'invite_forum_mailer', |