Skip to content

Instantly share code, notes, and snippets.

View danemacaulay's full-sized avatar

Dane Macaulay danemacaulay

View GitHub Profile
function cssPrefix(property, value){
var vendors = ['', '-o-','-moz-','-ms-','-khtml-','-webkit-'];
var styles = {};
for (var i = vendors.length - 1; i >= 0; i--) {
styles[vendors[i] + property] = value;
}
return styles;
}
@danemacaulay
danemacaulay / dane.zsh-theme
Last active December 25, 2015 11:08
my custom zsh cobbled together from alanpeabody
ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
@danemacaulay
danemacaulay / settings.local.php
Created March 3, 2014 14:49
settings.local.php
$conf['preprocess_css'] = false;
$conf['preprocess_js'] = false;
$conf['page_compression'] = false;
$conf['purge_proxy_urls'] = "";
$conf['scanther_dev'] = true;
$conf['error_level'] = 0;
$conf['devel_rebuild_theme_registry'] = true;
@danemacaulay
danemacaulay / gist:9844272
Last active August 29, 2015 13:57
video.js Event Controller
(function ($) {
$(document).ready(function() {
bindVideoListeners();
});
function bindVideoListeners(){
$('video').each(function() {
var id = $(this).attr('id');
videojs(id).on('play', function(){
stopOtherPlayers(id);
@danemacaulay
danemacaulay / compress.js
Created July 19, 2014 20:36
add support for grunt-contrib-compress
'use strict';
var path = require('path');
exports.name = 'compress';
//
// Output a config for the furnished block
// The context variable is used both to take the files to be treated
// (inFiles) and to output the one(s) created (outFiles).
@danemacaulay
danemacaulay / Vagrantfile
Last active August 29, 2015 14:04
DnB360 Vagrantfile
# Prerequisites
# git, svn, and working credentials
# [vagrant](https://www.vagrantup.com/downloads.html)
# [virtualbox](https://www.virtualbox.org/wiki/Downloads)
# [node](http://nodejs.org/download/)
# [bower](http://bower.io)
# [grunt](http://gruntjs.com/getting-started)
# Installation
# mkdir DnB360 && cd DnB360
@danemacaulay
danemacaulay / SimpleSearch.js
Created July 29, 2014 05:23
udpated spec file
/*global describe: true, browser: true, element: true, it: true, by: true, expect: true */
/**
* Created by IsukapalliS on 6/20/2014.
*/
var loginURL = 'https://qa.hoovers.com/H/private/mobile/html/index.html#/login/';
var homepage = 'https://qa.hoovers.com/H/private/mobile/html/index.html#/';
var chickenSearch = 'https://qa.hoovers.com/H/private/mobile/html/index.html#/search/companies/chicken/list';
var exec = require('child_process').exec,
fs = require('fs'),
path = require('path'),
winston = require('winston'),
projects;
fs.writeFileSync('build.log', '');
winston.add(winston.transports.File, { filename: 'build.log' });
projects = [
{
"name": "build",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "",
# This file provides an ubuntu environment in which to run the backend component of DnB360
## Prerequisites
# git, svn, and read permission on stash.dnbint.net and svn.hoovers.com
# [vagrant](https://www.vagrantup.com/downloads.html)
# [virtualbox](https://www.virtualbox.org/wiki/Downloads)
## Installation
# cd {{yourProjectsDir}}
# mkdir DnB360 && cd DnB360