Skip to content

Instantly share code, notes, and snippets.

View conraddecker's full-sized avatar

Conrad Decker conraddecker

View GitHub Profile
<Response>
<Dial>
<Number>19047163298</Number>
</Dial>
</Response>
<?xml version="1.0" encoding="utf-8" ?>
<Response>
<Play>http://vprclassical.streamguys.net/vprclassical128.mp3</Play>
</Response>
@conraddecker
conraddecker / index.html
Last active December 17, 2015 03:59
Test
<h1>Home Page</h1>
@conraddecker
conraddecker / gist:4224889
Created December 6, 2012 14:40
eZPublish Custom Edit Handler
<?php
class CustomEditHandler extends eZContentObjectEditHandler
{
function __construct()
{ }
function fetchInput( &$http, &$module, &$class, &$object, &$version, &$contentObjectAttributes, $editVersion, $editLanguage, $fromLanguage )
{ }
static function storeActionList()
@conraddecker
conraddecker / gist:3218058
Created July 31, 2012 15:59
Differing Responses
//Successful call
{
"label":"",
"results":
{
"conference number":"1-603-413-3053",
"call_id":42341727,
"pin":947162,
"call_name":"John's Call"
},
@conraddecker
conraddecker / backbone.collectioncache.js
Created June 21, 2012 18:38 — forked from tbranyen/backbone.collectioncache.js
Backbone.Collection caching by URL
/*!
* backbone.collectioncache.js v0.0.2
* Copyright 2012, Tim Branyen (@tbranyen)
* backbone.collectioncache.js may be freely distributed under the MIT license.
*/
(function(window) {
"use strict";
// Dependencies
RewriteCond /mnt/stor3-wc2-dfw1/489527/www.aoshqdd.com/web/content/wp-content/cache/supercache/aoshqdd.com/index.html !-f
RewriteRule (.*) http://aoshqdd.com/ [R=301,L]
function drawVisualization() {
var data = google.visualization.arrayToDataTable([
['Country', 'Popularity'],
['Milwaukee', 200],
['Cook', 300],
['Dane', 700]
]);
var options = {
region: 'US-WI',
var countryCode = "bo";
var subdomains = {
es: [ "bo", "mx", "es" ],
zh: [ "cn", "tw" ],
fr: [ "be", "fr", "ht" ],
de: [ "de", "at" ],
ru: [ "ru", "kz" ]
}
$.each(subdomains, function(idx, val){
$(document).ready( function() {
$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
function(data){
document.location.href='http://'+data.countryCode+'.coolsculpting.com';
}
);
});