This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 *" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mobile? | |
if session[:mobile_param] | |
session[:mobile_param] == "1" | |
else | |
request.user_agent =~ /Mobile|webOS/ | |
end | |
end | |
helper_method :mobile? | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.powertiny { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; |
OlderNewer