Skip to content

Instantly share code, notes, and snippets.

View aimeerivers's full-sized avatar

aimee rivers aimeerivers

View GitHub Profile
// ============================================================ //
// CAST
// ============================================================ //
window.chrome = {};
window.chrome.cast = {};
window.chrome.cast.isAvailable = true;
window.chrome.cast.initialize = function(a, b, c) { }
window.chrome.cast.ApiConfig = function(a, b, c) {
// This fakes that chromecast is available so the button appears
// call anything other than "available" to fake chromcast dissapearing
@aimeerivers
aimeerivers / revealing_statement.feature
Created January 13, 2012 09:19
Revealing statement
Feature: Revealing statement
Scenario Outline:
Given I begin a sentence "I'm not <SOMETHING> but ..."
When I finish the sentence
Then you will realise that I am in fact <SOMETHING>
Examples:
| SOMETHING |
| racist |
@aimeerivers
aimeerivers / why.js
Created December 7, 2011 09:21
Sencha touch links not clickable
Ext.application({
name: 'Sencha',
launch: function() {
Ext.create("Ext.TabPanel", {
fullscreen: true,
tabBarPosition: 'bottom',
ui: 'light',
items: [
require 'rubygems'
require 'RMagick'
require 'rvg/rvg'
include Magick
require 'picture'
RVG::dpi = 72
class PictureGenerator
When /^(?:|I )select "([^\"]*)" as the "([^\"]*)" date$/ do |date, date_label|
select_date(date, :from => date_label)
end
DATE_TIME_SUFFIXES = {
:year => '1i',
:month => '2i',
:day => '3i',
:hour => '4i',
:minute => '5i'
require 'rubygems'
require 'sinatra'
require 'haml'
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/lib')
require 'oauth.rb'
enable :sessions
get '/' do
_______________________________________
( Q: What's tiny and yellow and very, )
( very, dangerous? A: A canary with the )
( super-user password. )
---------------------------------------
o
o
.--.
|o_o |
|:_/ |
______
( moo )
------
o ,__,
o (oo)____
(__) )\
||--|| *
<html>
<head>
<title>Example Notice</html>
<style type="text/css">
body { font-family: helvetica; }
#notice {
color: #fff;
position: absolute;
width: 400px;
top: 10px;
You're nearly there!
The final bit.ly link is formed by putting together the 5 bonus letters you've found along the way.
http://bit.ly/*****
(in case you're wondering what this is, start here: http://twitpic.com/j50un)