Skip to content

Instantly share code, notes, and snippets.

View tylerwillingham's full-sized avatar

Tyler Willingham tylerwillingham

View GitHub Profile
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
# Ability to put ^ in validation messages to override the prefix
gem "custom_error_message"
@tylerwillingham
tylerwillingham / bimmerpostStories.py
Created June 14, 2014 18:40
Retrieves story titles and urls from bimmerpost.com
from bs4 import BeautifulSoup
import requests
story_qty = int(raw_input('How many stories do you want to get? '))
page = 1
story_count = 0
stories = []
# Get the data to filter for a given page
def getPageData():
@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

@tylerwillingham
tylerwillingham / Output HTML
Last active August 29, 2015 13:58
Trying to see if I'm doing something wrong since bind-attr doesn't appear to be working as expected..
<ul id="todo-list">
<script id="metamorph-3-start" type="text/x-placeholder"></script><script id="metamorph-0-start" type="text/x-placeholder"></script>
<li class="" data-bindattr-1="1">
<input type="checkbox" class="toggle">
<label><script id="metamorph-4-start" type="text/x-placeholder"></script>Learn Ember.js<script id="metamorph-4-end" type="text/x-placeholder"></script></label><button class="destroy"></button>
</li>
<script id="metamorph-0-end" type="text/x-placeholder"></script><script id="metamorph-1-start" type="text/x-placeholder"></script>
<li class="" data-bindattr-2="2">
<input type="checkbox" class="toggle">
<label><script id="metamorph-5-start" type="text/x-placeholder"></script>...<script id="metamorph-5-end" type="text/x-placeholder"></script></label><button class="destroy"></button>
@tylerwillingham
tylerwillingham / general.php
Last active August 29, 2015 13:55
Craft CMS: Full default config
<?php
/**
* General Configuration
*
* All of your system's general configuration settings go in here.
* You can see a list of the default settings in craft/app/etc/config/defaults/general.php
*
* Current as of Craft 1.3.2473
*/
{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