Skip to content

Instantly share code, notes, and snippets.

@kraigh
kraigh / bower.json
Last active August 29, 2015 14:23 — forked from ericlbarnes/bower.json
{
"name": "project",
"version": "0.0.0",
"authors": [
"Eric Barnes <me@example.org>"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
// Titanium Mobile code for slider control functionality
//----------------------------------------
// @CJ_Reed 23rd Dec 2010
var sliderView = Titanium.UI.createView({top:100,height:50,left: 40,width:240,backgroundColor:'#000'});
var sliderButton = Titanium.UI.createView({width:96,borderRadius:5,backgroundColor:'#bbb',height:sliderView.height,left:sliderView.left,top:sliderView.top});
Titanium.UI.currentWindow.add(sliderView);
Titanium.UI.currentWindow.add(sliderButton);
function unlock (){
@kraigh
kraigh / mortgage-contact.php
Created November 26, 2012 18:24
Mortgage Contact Form
function circa_loan_calc_mortgage_partner_form_submit($form, &$form_state) {
$listing_path = isset($_GET['q']) ? $_GET['q'] : '<front>';
$listing_link = url($listing_path, array('absolute' => TRUE));
$send_form_to = 'kraig@thecatena.com';
$params = array(
'context' => array(
'subject' => 'Request for mortgage info from user at circastl.com',
'body' => '<p>A user at circastl.com has requested mortgage pre-approval on a property.</p>' . '<p>Name: ' . $form['name'] . '</p><p>Email: ' . $form['email'] . '</p><br><p>Property: <a href="' . $listing_link . '">' . $listing_link . '</a></p><p>List Price: ' . $node->field_listing_price['und'][0]['value'] . '</p>',