Skip to content

Instantly share code, notes, and snippets.

trav5567 travi5567

Block or report user

Report or block travi5567

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flexbox.less
// --------------------------------------------------
// Flexbox LESS mixins
// The spec:
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-moz-@{display}";
travi5567 / gist:4702608
Created Feb 3, 2013
JQUERY: Document.ready script block
View gist:4702608
<script type="text/javascript">
$(function () {
View PHP: foreach loop
foreach($arrayVariable as $variable){
echo $variable;
View WORDPRESS: The_loop
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
travi5567 / get_model.php
Last active Dec 11, 2015
PHP: order,select,get return DATABASE_MODEL
View get_model.php
class Workouts_model extends CI_Model {
function getData() {
$this->db->order_by('id', 'DESC');
$this->db->select('id, arms, chest, legs, abbs, back');
$q = $this->db->get('workouts');
if($q->num_rows() > 0) {
travi5567 / html
Created Jan 22, 2013
Html: template
View html
<!DOCTYPE html>
<title>Title of Page</title>
<link rel="stylesheet" type="text/css" href="css/screen.css">
<script type="text/javascript" src="js/jquery.js"></script>
<div class="container">
You can’t perform that action at this time.