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
drop table if exists secured_data; | |
--For secured payments: | |
SELECT DISTINCT c.id | |
into temp secured_data | |
FROM customers c | |
JOIN loans l ON c.id = l.customer_id | |
JOIN loan_tasks_committed lt on lt.loan_id = l.id | |
AND lt.loan_task_cd in ('payoff_loan_task','payoff_instl_task') | |
JOIN payment_transactions_committed pt on pt.loan_task_committed_id = lt.id |
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
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: APPLICATION | |
# Required-Start: $all | |
# Required-Stop: $network $local_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start the APPLICATION unicorns at boot | |
# Description: Enable APPLICATION at boot time. | |
### END INIT INFO |
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
#!/bin/sh | |
# | |
# init.d script for single or multiple unicorn installations. Expects at least one .conf | |
# file in /etc/unicorn | |
# | |
# Modified by jay@gooby.org http://github.com/jaygooby | |
# based on http://gist.github.com/308216 by http://github.com/mguterl | |
# | |
## A sample /etc/unicorn/my_app.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
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the unicorn web server | |
# Description: starts unicorn |
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 data[key] | |
data[key] += value | |
else | |
data[key] = value | |
end | |
data[key] = 0 unless data[key] | |
data[key] += value |
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
validates :code_type, inclusion: {in: Proc.new{|s|s.class.code_types.keys}, | |
message: "is undefined", | |
allow_blank: true | |
}, | |
presence: true |
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
HTTP/1.1 302 Moved Temporarily | |
Date: Fri, 06 Jul 2012 17:18:25 GMT | |
Server: Apache | |
Cache-Control: max-age=0, no-cache, no-store, must-revalidate, private | |
Expires: 0 | |
Set-Cookie: qbo.authid=475429715; Domain=.intuit.com; Path=/; Secure; HttpOnly | |
Set-Cookie: qbo.agentid=475429725; Domain=.intuit.com; Path=/; Secure; HttpOnly | |
Set-Cookie: qbo.gauthid=475429725; Domain=.intuit.com; Path=/; Secure; HttpOnly | |
Set-Cookie: qbo.parentid=475430145; Domain=.intuit.com; Path=/; Secure; HttpOnly | |
Set-Cookie: qbo.tkt=V1-93-Q01341595105821ca2a290; Domain=.intuit.com; Path=/; Secure |
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
def self.student_search(params) | |
self.search( :full_name_or_user_email_or_role_student_type_teacher_or_home_phone_number_or_mobile_phone_number_contains => params) | |
end | |
def self.parent_search params | |
self.search( :full_name_or_user_email_or_role_parent_type_employer_or_role_parent_type_work_email_or_role_parent_type_work_phone_number_or_home_phone_number_or_mobile_phone_number_contains => params) | |
end | |
def self.joined_search(params) | |
self.search( :full_name_or_user_email_or_role_student_type_teacher_or_home_phone_number_or_mobile_phone_number_or_role_parent_type_employer_or_role_parent_type_work_email_or_role_parent_type_work_phone_number_or_home_phone_number_or_mobile_phone_number_contains => params) |
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 type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$("a").click(function(e){ | |
alert("vfvfvf"); | |
e.preventDefault(); | |
}); |
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 FileQueue | |
def initialize(file_name) | |
@file_name = file_name | |
end | |
def push(obj) | |
safe_open('a') do |file| | |
file.write(obj + "\n") | |
end |
OlderNewer