Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fireflydev
fireflydev / phog.php
Last active August 29, 2015 14:12
Send PHP Debug Information to Javascript Console
<?php
/**
* Send PHP debug data to JS console.log
* Example:
* <code>
* phog(compact('table', 'id'), __FILE__);
* </code>
*
* Which outputs the following in the console:
@fireflydev
fireflydev / gitdown.css
Last active August 29, 2015 14:01 — forked from tuzz/github.css
GITDOWN.CSS - Combines Github Markdown Styles with Pygments Code Highlighting CSS
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px;
color: #333;
}
@fireflydev
fireflydev / gist:5749743
Created June 10, 2013 15:38
Apollo FilterDirectory Example
<?php
public function songs($slug) {
$d = new FilterDirectory('songs');
$d -> SimpleQuery -> not_equal('artists.name', 'Rush') -> not_equal('artists.name', 'Paul Simon') -> descending('songs.title');
$d -> setResultsPerPage(5);
$d -> setHeader('<table id="songs" class="special">');