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
Setup steps for installing FreeTDS on Ubuntu 9.04 | |
sudo apt-get install unixodbc unixodbc-dev tdsodbc freetds-dev libodbc-ruby1.8 | |
sudo gem install dbi dbd-odbc --no-ri --no-rdoc | |
sudo apt-get install -y sqsh | |
export ODBCINI=/etc/odbc.ini | |
export ODBCSYSINI=/etc | |
export FREETDSCONF=/etc/freetds/freetds.conf |
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 GenericHashLookup | |
attr_accessor :state_hash, :office_hash, :agent_hash | |
def state(abbr) | |
generic_getter(Mls::State, 'state_hash', 'abbreviation', abbr) | |
end | |
def office_hash(mls_id) | |
generic_getter(Mls::Office, 'office_hash', 'mls_id', mls_id) | |
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
# some experimentation around generating OG, IBU, & SRM for based on beer ingredients | |
grains = [{:name => 'Liquid Malt Extract', :amount => 6, :measurement => 'lbs', :efficency => 1, :ppg => 36, :color => 4}, | |
{:name => 'Crystal Malt 60L', :amount => 1, :measurement => 'lbs', :efficency => 0.85, :ppg => 34, :color => 60}] | |
hops = [{:name => 'Fuggles', :amount => 2, :measurement => 'oz', :aau => 3.6, :time => 30}, | |
{:name => 'Willamette', :amount => 1, :measurement => 'oz', :aau => 4.3, :time => 10}] | |
total_size = 5 | |
boil_size = 3 |
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
_.templateSettings = { | |
evaluate : /<\?([\s\S]+?)\?>/g, | |
interpolate : /<\?=([\s\S]+?)\?>/g | |
}; | |
(function($) { | |
////// VIEWS /////// | |
window.IngredientView = Backbone.View.extend({ | |
tagName: 'li', |
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
namespace :deploy do | |
def format_column(str, length) | |
(length - str.length).times do | |
str += ' ' | |
end | |
str | |
end | |
def table_display(table_hsh, columns) |
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
<html> | |
<head> | |
<script src="//tags.extole.com/913653/core.js"></script> | |
</head> | |
<body> | |
<div> | |
Old link: <a href="http://gazelle.extole.com/m/95448701" id="refer_a_friend_link" target="_blank">Refer a Friend</a> | |
</div> | |
<div> | |
New Link: |
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
var ImeiChecker = { | |
test_one: 'testing 1', | |
test_two: 'testing 2' | |
}; | |
// Then you can retrieve the values: | |
ImeiChecker.test_one; // => testing 1 | |
// Update the values: |
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
source "https://supermarket.chef.io" | |
cookbook 'haproxy' |
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
diff --git a/template/Emails/order_status_email.html b/template/Emails/order_status_email.html | |
index 5506dca..76a16d3 100644 | |
--- a/template/Emails/order_status_email.html | |
+++ b/template/Emails/order_status_email.html | |
@@ -1,35 +1,87 @@ | |
-<html><body style="font-family: Arial; font-size: 12px;"> | |
- <div style="padding: 0 20px 20px 20px;"> | |
- <h2 style="font-size:22px; height:30px; color:#cc6600; border-bottom:dashed 1px gray">%%LNG_OrderStatusChanged%%</h2> | |
- | |
- <p>%%GLOBAL_OrderStatusChangedHi%%</p> |
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
# PostgreSQL Client Authentication Configuration File | |
# =================================================== | |
# | |
# Refer to the "Client Authentication" section in the PostgreSQL | |
# documentation for a complete description of this file. A short | |
# synopsis follows. | |
# | |
# This file controls: which hosts are allowed to connect, how clients | |
# are authenticated, which PostgreSQL user names they can use, which | |
# databases they can access. Records take one of these forms: |
OlderNewer