Skip to content

Instantly share code, notes, and snippets.

Scott Phillips ScottPhillips

  • Los Angeles, CA
Block or report user

Report or block ScottPhillips

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 Mailhog Bash Script (upstart)
#!/usr/bin/env bash
echo ">>> Installing Mailhog"
# Download binary from github
wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64
# Make it executable
chmod +x ~/mailhog
@ScottPhillips
ScottPhillips / app.blade.php
Created Apr 6, 2017 — forked from emmerink/app.blade.php
Laravel Blade layout for Twitter Bootstrap 4
View app.blade.php
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/favicon.ico">
<!-- CSRF Token -->
@ScottPhillips
ScottPhillips / README.md
Created Jan 25, 2017 — forked from petehamilton/README.md
Set up a Raspberry Pi to load a web dashboard
View README.md

Dashboards on Raspberry Pi

curl -L 'http://git.io/h1iuxQ' | sh
@ScottPhillips
ScottPhillips / Widget_Setup.php
Created Jan 21, 2013
OOP Style Widgets for Wordpress
View Widget_Setup.php
class Widget_Setup
{
public $widget_class = '';
public $admin_styles = array();
public $admin_scripts = array();
public $front_styles = array();
public $front_scripts = array();
public $script_defaults = array(
'handle' => '',
View SplClassLoader.php
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
* $classLoader = new SplClassLoader('Doctrine\Common', '/path/to/doctrine');
@ScottPhillips
ScottPhillips / gist:4138804
Created Nov 24, 2012 — forked from dbushell/gist:4131104
Animate scrolling to an element or offset
View gist:4138804
/*!
* requires jQuery
* usage:
* Scroller.to({ offset: 100 });
* Scroller.to({ target: $('#main') });
*
* advanced usage (with additional easing function not provided here)
* Scroller.to({ target: $('#main'), delay: 500, multiplier: 1.5, easing: 'easeOutQuad' });
*/
var Scroller = (function()
@ScottPhillips
ScottPhillips / google-plus-feed.php
Created Aug 18, 2012 — forked from ocean90/google-plus-feed.php
WordPress Page Template to build a feed of your Google+ stream
View google-plus-feed.php
<?php
/**
* Template Name: Google+ Feed
*/
/**
* A WordPress page template for a Google+ feed.
*
* @author Dominik Schilling
View text-logger.php
/* eZLog class very slightly modified from eZ Publish 4.3 */
class eZLog {
const MAX_LOGROTATE_FILES = 3;
const MAX_LOGFILE_SIZE = 204800; // 200*1024
/*!
Creates a new log object.
*/
function eZLog( )
{
}
@ScottPhillips
ScottPhillips / comments-as-xml.php
Created Aug 6, 2012
Output Wordpress Comments as XML
View comments-as-xml.php
<?php
// Load WordPress functions
require('wp-load.php');
$post = get_page($_REQUEST["id"]);
$id = $post->ID;
$withcomments = true;
$comments = getWPcomments();
View wordpress-fetch-rss-feed.php
<?php
include_once(ABSPATH . WPINC . '/feed.php');
if(function_exists('fetch_feed')) {
$feed = fetch_feed('http://example.com/feed/');
if (!is_wp_error($feed)) : $feed->init();
$feed->set_output_encoding('UTF-8'); // set encoding
$feed->handle_content_type(); // ensure encoding
$feed->set_cache_duration(21600); // six hours in seconds
You can’t perform that action at this time.