Skip to content

Instantly share code, notes, and snippets.

View chriscoyier's full-sized avatar

Chris Coyier chriscoyier

View GitHub Profile
@chriscoyier
chriscoyier / index.html
Created June 6, 2013 13:58
A CodePen by Chris Coyier. Track form progress with <progress> - Like a simple version of gamification.
<form accept-charset="UTF-8" action="#" class="pro-form" id="pro-form" method="post">
<h1>Progress Form</h1>
<div class="progress-wrap">
<progress max="100" value="0" id="progress"></progress>
<div class="progress-message" id="progress-message">The form, it wants you.</div>
</div>
<input id="subscription_plan_id" name="subscription[plan_id]" type="hidden" value="1">
@chriscoyier
chriscoyier / index.html
Created June 6, 2013 13:57
A CodePen by Chris Coyier. Track form progress with <progress> - Like a simple version of gamification.
<form accept-charset="UTF-8" action="#" class="pro-form" id="pro-form" method="post">
<h1>Progress Form</h1>
<div class="progress-wrap">
<progress max="100" value="0" id="progress"></progress>
<div class="progress-message" id="progress-message">The form, it wants you.</div>
</div>
<input id="subscription_plan_id" name="subscription[plan_id]" type="hidden" value="1">
<?php
function rkv_url_spamcheck( $approved , $commentdata ) {
$author_url = $commentdata['comment_author_url'];
$author_url_length = strlen($author_url);
if ($author_url_length > 50 )
$approved = 'spam';
<?php
/*
Template Name: RSS Gallery
*/
the_post();
$args = array(
'post_type' => 'screenshot',
'posts_per_page' => 10,
<?php if (!defined('APPLICATION')) exit();
// Copyright Trademark Productions 2010
$PluginInfo['AllViewed'] = array(
'Name' => 'Mark All Viewed',
'Description' => 'Allows users to mark all discussions as viewed.',
'Version' => '1.1',
'Author' => "Matt Lincoln Russell",
'AuthorEmail' => '[email protected]',
'AuthorUrl' => 'http://www.tmprod.com/web-development/vanilla.php',
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
<?php
#
# Markdown Extra - A text-to-HTML conversion tool for web writers
#
# PHP Markdown & Extra
# Copyright (c) 2004-2009 Michel Fortin
# <http://michelf.com/projects/php-markdown/>
#
# Original Markdown
# Copyright (c) 2004-2006 John Gruber
Incident Identifier: 0A23C5D0-DC83-416E-9BC6-A395F0C69A1E
CrashReporter Key: b1e8dca996bcd6ec7088c3286d1b1dd6bb7be5a5
Hardware Model: iPhone4,1
OS Version: iPhone OS 5.1.1 (9B206)
Kernel Version: Darwin Kernel Version 11.0.0: Sun Apr 8 21:51:47 PDT 2012; root:xnu-1878.11.10~1/RELEASE_ARM_S5L8940X
Date: 2012-09-10 09:26:07 -0700
Time since snapshot: 919 ms
Free pages: 1077
Active pages: 3327
<?php
/*
Template Name: Alamanc Group
*/
?>
<?php get_header(); the_post(); ?>
<h1 class="almanac-title">Almanac</h1>
html {
height: 100%;
background: linear-gradient(red, green);
}