Skip to content

Instantly share code, notes, and snippets.

View jackmcdade's full-sized avatar
🌴
🏝

Jack McDade jackmcdade

🌴
🏝
View GitHub Profile
@jackmcdade
jackmcdade / gist:3518861
Created August 29, 2012 20:58
Grid example
{{ the_grid }}
<div class="row">
<h1>{{ caption }}</h1>
<p>{{ some_text }}</p>
</div>
{{ /the_grid }}
@jackmcdade
jackmcdade / statamic-iis
Created October 10, 2012 17:17 — forked from PendragonDevelopment/statamic-iis
Statamic IIS rewrite rules for web.config
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(_config)" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^(.*).yml$" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
@jackmcdade
jackmcdade / statamic-iis
Created October 10, 2012 17:17 — forked from PendragonDevelopment/statamic-iis
Statamic IIS rewrite rules for web.config
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(_app)" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^(_cache)" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<h6 class="center">The Latest from <a href="/blog">My Journal</a></h6>
{{ entries:listing folder="blog" limit="5" }}
<div class="block entry">
<header>
<h2 class="entry-title"><a href="{{ url }}">{{ title }}</a></h2>
<p class="entry-date"> {{ datestamp format="F jS, Y" }}</p>
</header>
{{ content|widont }}
@jackmcdade
jackmcdade / index.html
Last active December 13, 2015 17:28 — forked from darwin/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg);">
<scene id="scene1">
<label t="translate(0,346)">
@jackmcdade
jackmcdade / gist:5568846
Last active December 17, 2015 06:58
Redactor 9.0.0 beta2 changelog

Redactor Changelog 9.0.0 beta2

  • We did a great job with the code, improving it's reliability, and making Redactor even much more flexible.
  • All-new API with tons of new methods and features.
  • Improved Redactor launch, especially when there're multiple editors on a page.
  • Improved feature of formatting with paragraphs.
  • Improved and completely rebuilt lists feature.
  • Improved blockquotes.
  • Improved code clean-up. The output code is clean and valid.
  • Improved localization; linking a language to Redactor is now easier than ever.
@jackmcdade
jackmcdade / kitchen_sink.yaml
Last active September 5, 2021 23:36
Statamic Fieldset Kitchen Sink
title: Fieldset Kitchen Sink
fields:
status:
type: status
_template:
type: templates
@jackmcdade
jackmcdade / gist:6585264
Last active December 23, 2015 05:09
My Sublime Text theme settings
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"font_size": 12.0,
"highlight_modified_tabs": true,
"ignored_packages":["Vintage"],
"line_numbers": true,
"phoenix_color_blue": true,
"phoenix_color_expanded_folder": true,
"phoenix_dirty_bottom_bar_red": true,
"phoenix_highlight_current_tab": true,
@jackmcdade
jackmcdade / parallax.js
Created January 23, 2014 16:46
parallax js
// Just a little vertical parllax goodness.
// You can play with the offsets for a more dramatic effect if you'd like.
$(function() {
var $window = $(window);
if ($window.width() > 640) {
$('.parallax').each(function() {
var self = $(this);
$(window).scroll(function() {
@jackmcdade
jackmcdade / gist:9914826
Created April 1, 2014 14:09
My Sublime Text settings
{
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/User/Deep Blue See (SL).tmTheme",
"enable_tab_scrolling": false,
"font_size": 12.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[