Skip to content

Instantly share code, notes, and snippets.

View nlively's full-sized avatar

Noah Lively nlively

View GitHub Profile
<script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script type="text/javascript">
var locations;
(function($){
var map = null;
var pinInfoBox; //the pop up info box
locations = [
{
number: 1,
@nlively
nlively / service_form.php
Created September 25, 2012 00:04
service_form.inc
<?php
$services = array (
"Sunday School" => "Sunday School",
"11AM" => "11AM",
"6PM" => "6PM",
"7PM (Tuesday)" => "7PM (Tuesday)"
);
$ratio = array (
50 => "Standard (4:3)", // put in the real term IDs here
51 => "Widescreen (16:9)",
@nlively
nlively / gist:2645069
Created May 9, 2012 14:51 — forked from arpitr/gist:2644788
site automation code put in a separate function and node structure for Mobile Website has been changed
<?php
/**
* Implementation of hook_ca_action().
*/
function webmobilize_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
@nlively
nlively / gist:2586520
Created May 3, 2012 15:31 — forked from kumarmanish/gist:2586390
docret.php
Array
(
[group_1] => Array
(
[0] => stdClass Object
(
[id] => 439
[guid] => f2c93d48-98ad-49a8-815a-a0050087fc9e
[jurisdiction_id] => d273a29a-60ea-e011-9f2a-485b397450b7
[name] => Retrieval- WEB (Articles of Formation- Plain)
<?php
/*
* Doubts
* 1.there is no more need of lookupListing as we are having standardizeListingFormat()
* 2.Will the implementation of applyListingDataToLocalRecord() will go like this..
* 3.staticfunction of a class can access non static class variables?....
* 4.Need documentation for getListingData()
*/
<?php
/*
* Doubts
* 1.there is no more need of lookupListing as we are having standardizeListingFormat()
* 2.Will the implementation of applyListingDataToLocalRecord() will go like this..
* 3.staticfunction of a class can access non static class variables?....
* 4.Need documentation for getListingData()
*/
<?php
// Including citygrid API
include "citygrid-places-api-class.php";
/*
* class ExternalLisitngService with methods to call citysearch API,update nodes on the basis of data
* from listing site,to count reviews from users,return all reviews form users
*