Skip to content

Instantly share code, notes, and snippets.

View travi5567's full-sized avatar

trav5567 travi5567

View GitHub Profile
@travi5567
travi5567 / flexbox.less
Last active August 29, 2015 14:23 — forked from jayj/flexbox.less
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-moz-@{display}";
@travi5567
travi5567 / gist:4702608
Created February 3, 2013 17:04
JQUERY: Document.ready script block
<script type="text/javascript">
$(function () {
});
</script>
<?php
foreach($arrayVariable as $variable){
echo $variable;
}
if($.browser.ie)
http://codex.wordpress.org/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
travi5567 / get_model.php
Last active December 11, 2015 11:39
PHP: order,select,get return DATABASE_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
travi5567 / html
Created January 22, 2013 05:06
Html: template
<!DOCTYPE html>
<html>
<head>
<title>Title of Page</title>
<link rel="stylesheet" type="text/css" href="css/screen.css">
<script type="text/javascript" src="js/jquery.js"></script>
</head>
<body>
<div class="container">