Avoid console
errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
/** | |
* iOS 6 style switch checkboxes | |
* by Lea Verou http://lea.verou.me | |
*/ | |
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */ | |
position: absolute; | |
opacity: 0; | |
} |
<?php | |
/** | |
* @author Marcelius 'mardagz' Dagpin | |
* @name Beautify JSON | |
* @copyright 2012 | |
* @uses / | |
* $json_array = array( | |
* "name" => "mardagz", | |
* "gender" => "lalaki po akow hihihi", | |
* "age" => 40 |
<!DOCTYPE> | |
<html> | |
<head> | |
<title>Dissecting Gmail's Email Attachments - Dropping Files</title> | |
<style> | |
.msg { | |
display: none | |
} | |
.dragging .msg { |
Avoid console
errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
upstream unicorn { | |
server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0; | |
} | |
server { | |
listen 80 default deferred; | |
# server_name example.com; | |
root <%= current_path %>/public; | |
if (-f $document_root/system/maintenance.html) { |
<html> | |
<head> | |
<title>Check AWB</title> | |
<style type="text/css"> | |
BODY, TD, INPUT { | |
font-family:Geneva, Arial, Helvetica, sans-serif; | |
font-size: 12px; | |
} | |
INPUT.submit { |
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.