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
<table class="responsive"> | |
<tr> | |
<th>Header 1</th> | |
<th>Header 2</th> | |
<th>Header 3</th> | |
<th>Header 4</th> | |
<th>Header 5</th> | |
<th>Header 6</th> | |
<th>Header 7</th> | |
<th>Header 8</th> |
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
<table style="width: 100%;"> | |
<tbody> | |
<tr> | |
<td width="25%" rowspan="2" class="centered-text"> | |
<img width="204" height="141" src="https://searshomewarranty.com/Templates/ion/ion_Framework_v4.0/themes/sears/logo_searshomewarranty_1608_resized.png"> | |
</td> | |
<td width="25%" class="teal-bg centered-text"> | |
<a class="white-text big-text" href="https://www.google.com">Whole House Warranty</a><br> | |
<a class="white-text small-text" href="https://www.google.com">Best Value!</a> | |
</td> |
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
<section class='rotating-carousel widget'> | |
<div class='owl-carousel owl-theme widget'> | |
<div> | |
<a class='item'> | |
<div class='carousel-content'> | |
<h1 class='carousel-header'>Test Header1</h1> | |
<div class='carousel-sub-header'>Duis aute irure dolor in reprehenderit</div> | |
</div> | |
<a class='item-read-more'>Go to Promotion</a> | |
<a class='carousel-details'>See details</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
private def period_cond(t_alias = 'f', t_column = 'created_at') | |
beginning_date, end_date = | |
case options.period | |
when 'this_week' | |
[Date.current.beginning_of_week.to_date, Date.current.to_date] | |
when 'this_month' | |
[Date.current.beginning_of_month.to_date, Date.current.to_date] | |
when 'this_quarter' | |
[Date.current.beginning_of_quarter.to_date, Date.current.to_date] | |
when 'this_year' |
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
I'm using SOAP. | |
<?xml version="1.0" encoding="UTF-8"?> | |
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soap:Body> | |
<ProcessJob xmlns="http://dpi.careerbuilder.com/WebServices/RealTimeJobPost"> | |
<xmlJob> | |
<Job> | |
<Field name="CBVendorID" value="AB6YR5WGJRL5F0814V"/> | |
<Field name="CBAction" value="ADD"/> |
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
$(function(){ | |
var $all = $('#selectAllButton input[type="radio"]').change(function () { | |
$sectionchecks.prop('checked', true).trigger('change'); | |
$none.closest('label').removeClass('c_on'); | |
}); | |
var $none = $('#selectNoneButton input[type="radio"]').change(function () { | |
$sectionchecks.prop('checked', false).trigger('change'); | |
$all.closest('label').removeClass('c_on'); | |
}); |
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 Person | |
has_many :accounts | |
has_many :computers, through: :accounts | |
end | |
class Account | |
belongs_to :person | |
belongs_to :computer | |
scope :administrators, -> { where(role: 'administrator') } |
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 'ostruct' | |
class LastPayReport | |
def initialize employees | |
@employees = employees | |
end | |
def get_rows | |
rows = [] |