Skip to content

Instantly share code, notes, and snippets.

View brandoncordell's full-sized avatar

Brandon Cordell brandoncordell

View GitHub Profile
@brandoncordell
brandoncordell / gist:799932
Created January 28, 2011 06:53
CreateMyScene.com/shop - products.js
<script type="text/javascript">
//<![CDATA[
var image_url = '<?=base_url()?>public/shared/images/products/';
$(document).ready(function()
{
/* hide some divs */
$('.wall, .window, .multiple_windows, .cart').hide();
/* disable checkout buttons */
@brandoncordell
brandoncordell / gist:799923
Created January 28, 2011 06:44
Authorize.net ARB library
<?php
/**
* Library for using Authorize.net's ARB (automated recurring billing)
*
* @author Brandon Cordell([email protected])
* @link http://projects.leadAndrock.com/cake_arb
* @copyright Copyright (c) 2010, Brandon Cordell
* @version 1.0
*
@brandoncordell
brandoncordell / gist:799922
Created January 28, 2011 06:43
CakePHP Link Helper
<?php
/**
* Link Helper
*
* @copyright Copyright 2010, Brandon Cordell
* @author Brandon Cordell <[email protected]>
* @link http://snippets.leadandrock.com/cakephp-link-helper
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Usage:
MacBook-Pro:weblog brandon$ bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.0)
Using builder (2.1.2)
Using i18n (0.4.1)
Using activemodel (3.0.0)
Using erubis (2.6.6)
Using rack (1.2.1)
## Cucumber Scenario
@wip
Scenario: Login with correct details
Given a user named "brent" exists
When I go to login
And I fill in "Username" with "brent"
And I fill in "Password" with "screech"
And I press "Log In"
# And show me the page