Skip to content

Instantly share code, notes, and snippets.

@austinkettner
austinkettner / gist:5387798
Created April 15, 2013 12:47
Code snippet for a dynamically generated work page
---
title: Work
layout: page
isPage: true
pageOrder: 2
---
h2 Work
p A full log containing all my work is coming soon!
module Sparq::Mail::Formats
class Welcome
message = File.read("layout.slim")
end
class VerifyEmail
end
@austinkettner
austinkettner / OpenMarq Item HTML Generation Example
Created October 28, 2014 15:57
Example of the HTML generated per item when browsing OpenMarq.com
<a class="item btn-icon" href="/Item/Info/Baseball-Tickets-Nationals-at-half-price/3923" data-id="3923" title="Baseball Tickets (Nationals) at half price">
<div class="box">
<div class="fav-box"><span class="op-login-active icon icon-fav" data-id="3923"></span></div>
<div class="preview">
<img src="http://static.openmarq.com/up/2664c0ccb9b34f39894f013621591202/b9c52debf312443a9e3bf7751c3544ca.jpg" alt="Baseball Tickets (Nationals) at half price">
</div>
<div class="info">
<h3>Baseball Tickets (Nationals) at half price</h3>
@austinkettner
austinkettner / git-commit-message.md
Created August 29, 2015 23:05
Git Commit Message Rules

Git Commit Message Model

Git Commit Messages Summary

  • Capitalized, short (50 chars or less)
  • DO NOT reference Github Issues via Resolve #24, etc. This is Github specific functionality and clutters the log with non-referenceable data.
  • Always use present-tense, imperative-style writing
  • Avoid commits covering multiple changes, always commit frequently to cover specific changes
  • In any advanced changes ALWAYS include a detailed git commit message in the description/body (explaining the short summary).

Git Commit Detailed Explanation Text

29.11.2015
2015-11-29 00:00:00 +0000
November 28, 2015
=== PHOTO DATES ===
2015-11-29 05:13:21 +0000
2015-11-29 05:13:10 +0000
2015-11-29 05:13:09 +0000
2015-11-29 05:13:08 +0000
2015-11-29 05:13:08 +0000
2015-11-29 05:11:20 +0000
@austinkettner
austinkettner / combine-files.sh
Last active February 27, 2018 03:44
Combine All Files in Folders to one folder
# Combine All Files in Folders to one folder**
find . -type f -print0 | xargs -0 -I file mv file .