Skip to content

Instantly share code, notes, and snippets.

View tylerwillingham's full-sized avatar

Tyler Willingham tylerwillingham

View GitHub Profile
@tylerwillingham
tylerwillingham / readme.md
Last active September 14, 2016 21:33
PuPHPet: Craft CMS VM

PuPHPet for Craft Development

I wanted to get a VM configured quickly for building Craft sites, this is what I did:

https://puphpet.com/#deploy-target

Deploy Target: Local VM

I want a local VM working with Vagrant + VirtualBox.

Local VM Details

runtime macros/matchit.vim
set mouse=a
:imap jk <Esc>
:set relativenumber
set t_Co=256
syntax on
colorscheme Tomorrow-Night
def something
puts 'awesome'
end
{exp:channel:entries
channel="procedures"
disable="{global:disabled_params_strict}"
dynamic="no"
orderby="title"
sort="asc"}
{if count == '1' OR count == '4' OR count == '7'}
<ul class="navGlobal_desktop-list">
{/if}
@tylerwillingham
tylerwillingham / 0_reuse_code.js
Created November 7, 2013 13:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine - by EllisLab
*
* @package ExpressionEngine
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc.
* @license http://expressionengine.com/user_guide/license.html
* @link http://expressionengine.com
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine - by EllisLab
*
* @package ExpressionEngine
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc.
* @license http://expressionengine.com/user_guide/license.html
* @link http://expressionengine.com
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine - by EllisLab
*
* @package ExpressionEngine
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc.
* @license http://expressionengine.com/user_guide/license.html
* @link http://expressionengine.com
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine - by EllisLab
*
* @package ExpressionEngine
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2003 - 2011, EllisLab, Inc.
* @license http://expressionengine.com/user_guide/license.html
* @link http://expressionengine.com
<?php
$last_view = array(
'session_one' => array(
'last_slide' => '3'
),
'session_two' => FALSE,
'session_three' => FALSE
);