View paypal
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
<?php | |
/******************************************************************************* | |
* PHP Paypal IPN Integration Class | |
******************************************************************************* | |
* Editor: Austin Bales | |
* | |
* Author: Micah Carrick | |
* Email: email@micahcarrick.com | |
* Website: http://www.micahcarrick.com | |
* |
View gist:197815
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 send_upload_email(pcode, email) | |
begin | |
@pcode = pcode | |
Pony.mail(:to=>email, | |
:from => 'Pris.ma <do-not-reply@pris.ma>', | |
:subject=> "You uploaded a file on Pris.ma!", | |
:body => erb(:upload_email), | |
:via => :smtp, :smtp => { | |
:host => 'smtp.gmail.com', | |
:port => '587', |
View gist:197817
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 send_upload_email(pcode, email) | |
begin | |
@pcode = pcode | |
Pony.mail(:to=>email, | |
:from => 'Pris.ma <do-not-reply@pris.ma>', | |
:subject=> "You uploaded a file on Pris.ma!", | |
:body => erb(:upload_email), | |
:via => :smtp, :smtp => { | |
:host => 'smtp.gmail.com', | |
:port => '587', |
View messaging.js
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
/* | |
* 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){ |
View index.php
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
<?php | |
/* | |
* Re-routes to http://id75.cmustudents.org | |
* | |
*/ | |
header('Location: http://id75.cmustudents.org'); |
View standalone_example.rb
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
#!/usr/bin/env ruby | |
# | |
# A one file test to show ... | |
require 'rubygems' | |
require 'dm-core' | |
# setup the logger | |
DataMapper::Logger.new(STDOUT, :debug) |
View standalone_example.rb
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
#!/usr/bin/env ruby -Ku | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'dm-core' | |
DataMapper::Logger.new($stdout, :debug) | |
DataMapper.setup(:default, 'sqlite3::memory:') |
View gist:260782
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
#!/usr/bin/env ruby -Ku | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'dm-core' | |
require 'dm-types' | |
DataMapper::Logger.new($stdout, :debug) |
View gist:261484
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 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) |
View gist:264337
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
#!/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