Skip to content

Instantly share code, notes, and snippets.

View apo11oCreed's full-sized avatar

Nelson Correia apo11oCreed

  • Boston, Massachusetts
View GitHub Profile
@apo11oCreed
apo11oCreed / index.html
Created May 19, 2015 15:09
html5structure
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
</head>
<body>
@apo11oCreed
apo11oCreed / submitResponseETS.php
Last active December 19, 2015 23:28
PHP FORM: Submit & Process - ETS
<?php
if(isset($_POST['inquirySubmit']))
{
$message='<div class="invalid">The following errors occurred:<br />';
$problem=FALSE;
if(!eregi("^[[:alpha:].'-]{4,}$", stripslashes(trim($_POST['firstname'])))){
$problem=TRUE;
$message.='<p>Please enter a valid first name.</p>';
@apo11oCreed
apo11oCreed / jquery.transit.js
Created February 24, 2013 16:34
JS: Jquery Transit
/*!
* jQuery Transit - CSS3 transitions and transformations
* (c) 2011-2012 Rico Sta. Cruz <rico@ricostacruz.com>
* MIT Licensed.
*
* http://ricostacruz.com/jquery.transit
* http://github.com/rstacruz/jquery.transit
*/
(function($) {
@apo11oCreed
apo11oCreed / gist:4617509
Created January 24, 2013 03:54
CSS: Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {