Skip to content

Instantly share code, notes, and snippets.

View passion4code's full-sized avatar

Jason Rose passion4code

View GitHub Profile
$("label").click(
function () {
var labelFor = $(this).attr('for');
labelFor = $('#'+labelFor);
if(labelFor.length > 0 && labelFor[0].type == 'checkbox'){
if(labelFor[0].checked == true){
$(this).removeClass("select");
labelFor.removeAttr('checked');
}else{
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://maps.googleapis.com/maps/api/geocode/json?address='.urlencode($regionCode).'&region='.urlencode($regionCode).'&sensor=false');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$response = curl_exec($ch);
$resp = @json_decode($response);
curl_close($ch);
$found = false;
if($resp){
<?php
//Load the string up
$string = '<html><body><h4 class="itemheading" id="bizTitle0">
<a id="bizTitleLink0" href="/biz/facial-bungalow-west-hollywood#query:esthetician">I NEED THIS</a>
</h4>
BUNCH OF HTML
<address>
I NEED THIS
</address></body></html>';
@passion4code
passion4code / gist:929892
Created April 19, 2011 22:40
default layout file
<body>
<div id="container">
<?php if($auth_user = $this->Session->read('Auth.User')): ?>
<div class="member-box">
<div class="center">
<div class="share-btn"><a class="btn small small-share"><span><?php __('Share Your Idea Here'); ?></span></a></div>
<div class="float-right">
<?php echo $this->element('user_header',array('auth_user'=> $auth_user)); ?>
<?php
protected function _getPaymentMethodsHtml()
{
// ob_start();
// include(BASE_PATH.'app/design/frontend/d1sn_interface/default/template/checkout/onepage/cc_pick.phtml');
// $output = ob_get_clean();
// return $output;