Skip to content

Instantly share code, notes, and snippets.

View maccman's full-sized avatar
🦜
gpu poor

Alex MacCaw maccman

🦜
gpu poor
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<!-- The required Stripe lib -->
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<!-- jQuery is used only for this example; it isn't required to use Stripe -->
@maccman
maccman / gist:1232164
Created September 21, 2011 14:23 — forked from tvandervossen/gist:1231476
Mobile Safari viewport sizes on iOS 4.3 and 5
iPad
1024 × 690 In landscape on iOS 4.3
1024 × 672 In landscape on iOS 5
768 × 946 In portrait on iOS 4.3
768 × 928 In portrait on iOS 5
1024 × 660 Always showing bookmarks bar in landscape on iOS 4.3
1024 × 644 Always showing bookmarks bar in landscape on iOS 5
768 × 916 Always showing bookmarks bar in portrait on iOS 4.3
@maccman
maccman / app.js
Created April 23, 2011 06:34 — forked from kirbysayshi/app.js
troubleshooting spine.js
<!DOCTYPE html>
<html>
<head>
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../spine.js" type="text/javascript" charset="utf-8"></script>
<script src="../lib/spine.route.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function(){
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
# - a browser with WebSocket support
#
# Usage:
# ruby redis_pubsub_demo.rb
#
var calls = ["one", "two", "three"]
var name;
for(var i in calls) {
name = calls[i];
this[name] = function(){
alert(name);
}
}
this.one()
@maccman
maccman / Gemfile
Created February 11, 2010 14:14 — forked from lifo/Gemfile
gem 'cramp'
gem 'erubis', '2.6.5'
gem 'usher', "0.6.0"
#!/bin/sh
# Fetch and install the latest Chromium mac nightly build, but only
# if it's different from the currently installed version. An existing
# Chromium.app is backed up to .Chromium.app in the same directory.
#
# Install with:
# $ curl -L http://bit.ly/night-chrome > ~/bin/nightly-chromium
# $ chmod +x ~/bin/nightly-chromium
#
# To upgrade to latest chromium version:
@maccman
maccman / gist:272318
Created January 8, 2010 19:28 — forked from maddox/gist:2626
/* ========================================================================
Flip
======================================================================== */
.dashcode-transition-flip-container {
-webkit-perspective: 800; /* subviews should have the same perspective during flip */
-webkit-animation-name: "dashcode-transition-flip-container";
}
/* This works great for ease-in-out but not for other timing. */
@-webkit-keyframes dashcode-transition-flip-container {
require 'observable'
class ObservableArray
include Observable
def initialize(array = [])
@array = array
end
protected