Skip to content

Instantly share code, notes, and snippets.

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const
assert = require('assert'),
gmailEq = require('../lib/gmail_compare.js'),
vows = require('vows');
var suite = vows.describe('Gmail Equivalence');
@callahad
callahad / bigtent-yahoo.py
Created December 19, 2012 16:59
Yahoo BigTent Selenium Tests
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys
# Utility Functions
@callahad
callahad / gist:4322528
Created December 17, 2012 21:37
Proposed edits to Crystal's blog post

Apps vs. Web and Why Identity Is Key

Response to Vibhu Norby’s post: Why We’re Pivoting from Mobile-first to Web-first

My TL;DR

An ad-revenue based mobile app necessitates a fast-growth strategy that pushes high volumes of new users. The tools to optimize that conversion funnel (a/b testing) don’t work on mobile because of the clunky update process. With all the discussion of apps vs web, it’s easy to lose sight of the critical point in this article: sign up friction is A KEY REASON for apps being unable to monetize.

@callahad
callahad / lenny-to-wheezy.sh
Created March 7, 2011 05:14
Upgrade a fresh Debian 5 (Lenny) Slicehost VM to Debian Testing (Wheezy), unattended.
#!/bin/bash
# -- Set up environment variables for unattended installation of packages
export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical
# -- Update to a newer debian-archive-keyring
aptitude update
aptitude -q -y install debian-archive-keyring
@callahad
callahad / gist:757767
Created December 28, 2010 21:43
My solution for VimGolf Challenge "Braces or Brackets?" at http://vimgolf.com/challenges/4d1a522ea860b7447200010b
# 50 Characters
Vjj:!tr '{}[()' '(){[]'
jj$r{j3lr(7wlr)jr}j0.ZZ
# 49 Characters
Vjj:!tr '{}[()' '(){[]'
jj$r{jf{r(f}r)jr}j0.ZZ
# 48 Characters
Vjj:!tr '{}[()' '(){[]'
@callahad
callahad / sfd.md
Last active August 29, 2015 14:06
Slides from Software Freedom Day 2015

%title: Intro to FxOS Tooling %author: dcallahan@mozilla.com %date: 2014-09-20

$ cowsay "Intro to FxOS Tooling"

      _______________________
     < Intro to FxOS Tooling >
      -----------------------

\ ^__^

@callahad
callahad / gist:9996308
Created April 5, 2014 18:56
Links from my talk on Web Components at Twin Cities Code Camp, Spring 2014

Don't <blink>: How Web Components will Redefine the Web

Flags:

  • Firefox (about:config)
    • dom.webcomponents.enabled
  • Chrome (chrome://flags)
    • #enable-experimental-web-platform-features
    • #enable-html-imports

(Firefox doesn't have native HTML import support, yet.)