Skip to content

Instantly share code, notes, and snippets.

View ryun's full-sized avatar
🤘

Ryun Shofner ryun

🤘
View GitHub Profile
@ryun
ryun / ajaxCache.example.js
Last active December 10, 2015 00:19 — forked from anonymous/Usage.js
Ajax auto-cache
var aCache = new ajaxCache({pk: "folder_id", prefix: "folder");
$('#folder_sel').change(function() {
var folder_id = $(this).val();
aCache.post(href_val, {'folder_id': folder_id}, function(data) {
//code
});
})
{{ sidebar_menu:has_sidebar page=page:id }}
<div class="sidebar">
<ul>
{{ sidebar_menu:show page=page:id}}
</ul>
</div>
{{ /sidebar_menu:has_sidebar }}
@ryun
ryun / deploy.rb
Last active August 29, 2015 14:07 — forked from chipotle/deploy.rb
# Capistrano Laravel 4 Deployment Tasks
# Watts Martin (layotl at gmail com)
# https://gist.github.com/chipotle/5506641
# updated 14-Aug-2013
# Assumptions:
#
# - You are using a .gitignore similar to Laravel's default, so your
# vendor directory and composer(.phar) are *not* under version control
# - Composer is installed as an executable at /usr/local/bin/composer