Skip to content

Instantly share code, notes, and snippets.

View wisbey's full-sized avatar

Matt Wisbey wisbey

View GitHub Profile
@wisbey
wisbey / gist:6592356
Created September 17, 2013 10:01 — forked from sta1r/gist:5765210
<?php
// PHP is useful for conditional logic where the HTML structure is very different - e.g.
$number_of_highlight_boxes = '<t4 type="content" name="Number of boxes" output="normal" modifiers="" />';
if ($number_of_highlight_boxes == "1") { /* write some HTML */ } else { /* write some more HTML */ }
?>
<!--

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
// Showtime JSON loader
if ($('#showtime-json').length){
var feedUrl = $('#showtime-json').data('url');
var limit = $('#showtime-json').data('limit');
$.getJSON( feedUrl + '&limit=' + limit + '&callback=?', function(data) {
$('.loader').hide();
var container = $('#showtime-json');
var outputNode = container.find('ul');