Skip to content

Instantly share code, notes, and snippets.

#
# Supported browsers
#
modern_browser gecko 1.9;
# note that Safari related directives match
# Chrome, Mobile Safari, Palm Pre and other WebKit-based browsers here, too, thanks
# to all of them using almost identical User-Agent strings
modern_browser safari 3.0;
tell application "Finder"
try
mount volume "afp://10.0.0.1" as user name "UserName" with password "Password"
end try
end tell
do shell script "cd /Volumes/Data/Time_Capsule_Temp/ && rm -r *"
def mobile?
if session[:mobile_param]
session[:mobile_param] == "1"
else
request.user_agent =~ /Mobile|webOS/
end
end
helper_method :mobile?
@CameronGilroy
CameronGilroy / gist:1059831
Created July 2, 2011 07:52
html that is generating an error in espresso2
<!DOCTYPE HTML>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<title>Site Name</title>
<link rel="stylesheet" type="text/css" href="/assets/application.css" media="all" />
</head>
<body>
<div class="container wrapper">
<div class="header">
@CameronGilroy
CameronGilroy / php-cgi.rb
Created July 14, 2011 12:58 — forked from eston/php-cgi.rb
Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
# Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
require 'formula'
class PhpCgi <Formula
@url='http://www.php.net/get/php-5.2.14.tar.bz2/from/www.php.net/mirror'
@version='5.2.14'
@homepage='http://php.net/'
@md5='bfdfc0e62fe437020cc04078269d1414'
.powertiny {
display: none;
}
@CameronGilroy
CameronGilroy / dabblet.css
Created January 21, 2012 05:02 — forked from chriscoyier/dabblet.css
Oprah Thing
/* Oprah Thing
Saw some movie and there was some Oprah-related commerical before it and it had title things like this during it
*/
body { background: black; padding: 100px; margin: 0; }
h1 {
text-align: center;
color: white;
text-transform: uppercase;
@CameronGilroy
CameronGilroy / dabblet.css
Created January 21, 2012 05:02 — forked from chriscoyier/dabblet.css
Oprah Thing
/* Oprah Thing
Saw some movie and there was some Oprah-related commerical before it and it had title things like this during it
*/
body { background: black; padding: 100px; margin: 0; }
h1 {
text-align: center;
color: white;
text-transform: uppercase;
@CameronGilroy
CameronGilroy / dabblet.css
Created March 13, 2012 08:31 — forked from schadeck/dabblet.css
design shack - Use Pseudo Elements to Create an Image Stack Illusion
/**
* design shack - Use Pseudo Elements to Create an Image Stack Illusion
*/
* { margin: 0; padding: 0; }
body {background: #ccd3d7;}
div[class*='stack'] {
float: left;
position: relative;
@CameronGilroy
CameronGilroy / dabblet.css
Created March 13, 2012 08:32
design shack - Use Pseudo Elements to Create an Image Stack Illusion
/**
* design shack - Use Pseudo Elements to Create an Image Stack Illusion
*/
* { margin: 0; padding: 0; }
body {background: #ccd3d7;}
div[class*='stack'] {
float: left;
position: relative;