Skip to content

Instantly share code, notes, and snippets.

View adjohu's full-sized avatar
🎶
Writing code

Adam Hutchinson adjohu

🎶
Writing code
View GitHub Profile
window._qbetc = [
{
clientId: "lowcostholidays",
domain: ".lowcostholidays.com",
experiments: [
{
id: "T004-property-results",
creatives: {
"creative1": {
activation: function () {},
@adjohu
adjohu / Gallery Collection
Created June 27, 2012 20:47
Base Collection
@adjohu
adjohu / gist:2827899
Created May 29, 2012 11:18
expired links
(function () {
var env, test, $;
/*
* Set up environment
*/
(env = {
init: function () {
$ = env.getJquery();
(test = {
_html: function (arr) {
return $(arr.join(""));
},
_urlMatch: function (regex, callback) {
if (regex.test(window.location.href)) {
return callback();
}
},
$(function(){
(function() {
var iphone = false;
var supportsFixed = function () {
var ua = navigator.userAgent;
if (/iphone|ipod|ipad/i.test(ua)) {
iphone = true;
return !(/OS [1-4]/i.test(ua));
$(function(){
(function() {
var isMobile = function() {
return navigator.userAgent.search(/iphone|ipod|ipad|android/i) > -1;
};
var fixSliderPosition = function() {
var slider = $("#qContent");
if (!slider.length) {
setTimeout(fixSliderPosition, 200);
$(function(){
(function() {
var fixSliderPosition = function() {
var slider = $("#qContent");
if (!slider.length) {
setTimeout(doStuff, 200);
return;
}
slider.show();
$ = jQuery
pluginName = "propertyBinding"
$.propertyBinding = (element, options) ->
self = @
defaults =
a : 1
b : 2
$(window).bind('beforeunload', function(){
return Editor.beforeClose();
});
/*
var keyHandler = function(){
_.each( arguments, function(
}
keyHandler('ctrl','leftarrow',function(){
var getOwnProperties = function(model){
var props = {};
for(var prop in model){
if( model.hasOwnProperty(prop)
&& prop.indexOf('__ember') < 0
&& prop.indexOf('_super') < 0
&& Ember.typeOf(model.get(prop)) !== 'function'
){
props[prop] = model[prop];
}