This file contains hidden or 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
<?php | |
/******************************************************************************* | |
* PHP Paypal IPN Integration Class | |
******************************************************************************* | |
* Editor: Austin Bales | |
* | |
* Author: Micah Carrick | |
* Email: [email protected] | |
* Website: http://www.micahcarrick.com | |
* |
This file contains hidden or 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 send_upload_email(pcode, email) | |
begin | |
@pcode = pcode | |
Pony.mail(:to=>email, | |
:from => 'Pris.ma <[email protected]>', | |
:subject=> "You uploaded a file on Pris.ma!", | |
:body => erb(:upload_email), | |
:via => :smtp, :smtp => { | |
:host => 'smtp.gmail.com', | |
:port => '587', |
This file contains hidden or 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 send_upload_email(pcode, email) | |
begin | |
@pcode = pcode | |
Pony.mail(:to=>email, | |
:from => 'Pris.ma <[email protected]>', | |
:subject=> "You uploaded a file on Pris.ma!", | |
:body => erb(:upload_email), | |
:via => :smtp, :smtp => { | |
:host => 'smtp.gmail.com', | |
:port => '587', |
This file contains hidden or 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
/* | |
* 417east Messaging | |
* | |
* Copyright (c) 2009 Austin Robert Bales | |
* Licensed under the LGPL license. | |
* | |
*/ | |
message_index=0; | |
var Message = Class.create({ | |
initialize:function(messageText,className, clickToDismiss){ |
This file contains hidden or 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
<?php | |
/* | |
* Re-routes to http://id75.cmustudents.org | |
* | |
*/ | |
header('Location: http://id75.cmustudents.org'); |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# | |
# A one file test to show ... | |
require 'rubygems' | |
require 'dm-core' | |
# setup the logger | |
DataMapper::Logger.new(STDOUT, :debug) |
This file contains hidden or 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
#!/usr/bin/env ruby -Ku | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'dm-core' | |
DataMapper::Logger.new($stdout, :debug) | |
DataMapper.setup(:default, 'sqlite3::memory:') |
This file contains hidden or 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
#!/usr/bin/env ruby -Ku | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'dm-core' | |
require 'dm-types' | |
DataMapper::Logger.new($stdout, :debug) |
This file contains hidden or 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 Table | |
include DataMapper::Resource | |
property :id, Serial | |
property :name, String | |
# Relationship to the join table. | |
has n, :tableBookings | |
# Defines that Table has bookings in :tableBookings on the :booking named relationship. (a) |
This file contains hidden or 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
#!/usr/bin/env ruby -Ku | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'dm-core' | |
require 'dm-types' | |
DataMapper::Logger.new($stdout, :debug) | |
DataMapper.setup(:default, "sqlite3:///#{Dir.pwd}/examine.db") |
OlderNewer