Skip to content

Instantly share code, notes, and snippets.

View fleeting's full-sized avatar
🐢
As productive as this turtle.

James Fleeting fleeting

🐢
As productive as this turtle.
View GitHub Profile
<?php
$config['MbCmsPlugin'] = array(
'TshmExceptionRenderer',
'CsvView' => array(),
'Microsites' => array('bootstrap' => true, 'routes' => false),
'MenuCtas' => array('bootstrap' => true, 'routes' => true),
'News'=> array('bootstrap' => true, 'routes' => true),
'PressReleases' => array('bootstrap' => true, 'routes' => true),
'TextBlocks' => array('bootstrap' => true, 'routes' => true),
'PullQuotes' => array('bootstrap' => true, 'routes' => true),
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
{
contact_information: {
name: 'Contact Information',
description: '',
fields: {
first_name: {
type: 'text',
label: 'First Name',
description: '',
placeholder: '',
<?php $listItems = explode("\n", $careerrequirements);
if(!empty($listItems)) {
foreach ($listItems as $listItem) {
if ($listItem) {
echo "<li>$listItem</li>";
}
}
}
?>
<?php
/**
* outputfilter adds content of {footer}-blocks to end of document <body>
* @param string
* @param Smarty
* @return string
*/
function smarty_outputfilter_move_to_footer($tpl_output, &$smarty)
{
$matches = array();
@fleeting
fleeting / simpleWeather.js
Last active August 29, 2015 14:00
Temp fix for http/https issue for v2.7.0.
/*
* simpleWeather
* http://simpleweatherjs.com
*
* A simple jQuery plugin to display current weather data
* for any location and doesn't get in your way.
*
* Developed by James Fleeting <@fleetingftw> <http://iwasasuperhero.com>
* Another project from monkeeCreate <http://monkeecreate.com>
*
jQuery(function() {
$('.js-simpleGH').each(function() {
var el = $(this);
var repo = el.data('repo'); //monkeecreate/jquery.simpleWeather
$.when(
$.ajax({ url: 'https://api.github.com/repos/'+repo, dataType: 'jsonp' }),
$.ajax({ url: 'https://api.github.com/repos/'+repo+'/tags', dataType: 'jsonp' })
).done(function(repoData, repoTags) {
var data = repoData[0].data;
<?php
/**
* Template Name: Staff Template
* Description: Custom page template.
* @package WordPress
* @subpackage CW
* @since CW 1.0
*/
get_header(); ?>
<?php
/**
* Template Name: FAQs Template
* Description: Custom page template.
* @package WordPress
* @subpackage CW
* @since CW 1.0
*/
get_header(); ?>
<?php
<?php
/**
* Reviews Custom Post Type
*
* @since MB 1.0
*/
function mb_cpp_reviews_init() {
$field_args = array(
'labels' => array(
'name' => __( 'Reviews' ),