Skip to content

Instantly share code, notes, and snippets.

for information on survivor’s benefit<a href="#" class="demoplayer-overlay" rel="#demoplayer-overlay" data-iframe-height="600" data-iframe-width="885" data-iframe-src="/File%20Library/Flash/Spending-Demo/index.html">s</a>.
$(function() {
Player.setup({
playlist: [{
duration: 10,
image: 'examples/images/preview1.png',
title: 'Imperdiet Dignissim',
levels: [
{ file: 'examples/video/video1.mp4' },
{ file: 'examples/video/video1.webm' }
]
# Install rubygems
sudo yum install rubygems
# Install chef gem
sudo gem install chef --no-ri --no-rdoc
@ejholmes
ejholmes / gist:2785048
Created May 25, 2012 00:22
Script to remove all .DS_Store files in a directory.
alias rmds_store="find . -type f -name '.DS_Store' -exec rm {} \\;"
From e8ec3b84ab4eec55f2b1fe9a5cee294a5352ee78 Mon Sep 17 00:00:00 2001
From: "Eric J. Holmes" <[email protected]>
Date: Tue, 29 May 2012 19:50:13 -0700
Subject: [PATCH] Need to check if the object has it's own property, so that
libraries like emberjs don't cause issues by polluting
object prototypes.
---
js/src/utils/jwplayer.utils.strings.js | 42 +++++++++++++++++---------------
1 file changed, 22 insertions(+), 20 deletions(-)
@ejholmes
ejholmes / gist:2877201
Created June 5, 2012 19:29
Insert add this if not IE
(function($, jwplayer) {
if (!($.browser.msie && (parseInt($.browser.version) < 8))) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.innerHTML = 'var switchTo5x=true;';
$('head').append(script);
script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'http://w.sharethis.com/button/buttons.js';
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
date > /etc/vagrant_box_build_time
# Apt-install various things necessary for Ruby, guest additions,
# etc., and remove optional things to trim down the machine.
apt-get -y update
apt-get -y upgrade
apt-get -y install linux-headers-$(uname -r) build-essential
apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
@ejholmes
ejholmes / Gemfile
Created June 12, 2012 05:15 — forked from sr/Gemfile
Janky on Heroku
source "http://rubygems.org"
gem "janky", "~>0.9"
gem "pg"
gem "thin"

We specialize in building extensible web applications with Ruby on Rails, using the tried and true techniques of test driven development and agile methodologies.

Our Philosophy

Why Rails?

We believe in using the best techniques and technologies to save you time and money, while delivering a product that will wow your user base with an exceptional user experience.

By using open source technologies such as Ruby on Rails, we can build highly customized applications that get you to market quickly and efficiently and allow you to scale on demand while incurring minimal costs and avoiding vendor lockin.

Who uses it?

@ejholmes
ejholmes / gist:2945479
Created June 17, 2012 19:10
dnsmasq.conf tag mac addresses
# Tag demo team computers
dhcp-host=40:6C:8F:07:5C:E2,set:red
dhcp-host=C8:2A:14:22:FE:58,set:red
dhcp-host=C8:2A:14:51:05:33,set:red
dhcp-host=40:6C:8F:07:42:C4,set:red
dhcp-host=00:26:08:E9:10:2A,set:red
dhcp-host=10:40:f3:95:64:b2,set:red
# Set router for demo team
dhcp-option=tag:red,3,192.168.2.1