Skip to content

Instantly share code, notes, and snippets.

View roachhd's full-sized avatar

Lachlan Seward roachhd

View GitHub Profile
require 'fileutils'
require 'digest/md5'
require 'redcarpet'
require 'pygments'
class Redcarpet2Markdown < Redcarpet::Render::HTML
def block_code(code, lang)
lang = lang || "text"
colorized = Pygments.highlight(code, :lexer => lang, :options => { :style => "default", :encoding => 'utf-8'})
add_code_tags(colorized, lang)
@roachhd
roachhd / index.html
Created November 5, 2014 23:51
easily center an image with css
<section class="content about">
<h1 class="big thin">The PURPLE OWL</h1>
<img src="http://www.clker.com/cliparts/J/Q/T/y/5/i/purple-orange-owl-hi.png" class="noclip" style="display: block;margin-left: auto;margin-right: auto;" />
@roachhd
roachhd / README.md
Last active August 29, 2015 14:08
GET SOCIAL 🙌 ... all my profiles links, cos its all about me you know 😉

LICENSED APPLICATION END USER LICENSE AGREEMENT

The Products transacted through the Service are licensed, not sold, to You for use only under the terms of this license, unless a Product is accompanied by a separate license agreement, in which case the terms of that separate license agreement will govern, subject to Your prior acceptance of that separate license agreement. The licensor (“Application Provider”) reserves all rights not expressly granted to You. The Product that is subject to this license is referred to in this license as the “Licensed Application.”

a. Scope of License: This license granted to You for the Licensed Application by Application Provider is limited to a non-transferable license to use the Licensed Application on any iPhone or iPod touch that You own or control and as permitted by the Usage Rules set forth in Section 9.b. of the App Store Terms and Conditions (the “Usage Rules”). This license does not allow You to use the Licensed Application on any iPod touch or iPhone that You

@roachhd
roachhd / app.js
Created October 15, 2014 08:38
Super single page site
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var App, app, characters, client, navigation, _,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
_ = require('underscore');
characters = require('./characters');
navigation = require('./navigation');

GitHub Help Contact Support Return to GitHub Writing on GitHub / GitHub Flavored Markdown SearchArticle last updated on 09-Oct-14 GitHub Flavored Markdown GitHub uses "GitHub Flavored Markdown," or GFM, across the site--in issues, comments, and pull requests. It differs from standard Markdown (SM) in a few significant ways, and adds some additional functionality.

If you're not already familiar with Markdown, take a look at Markdown Basics. If you'd like to know more about features that are available in issues, comments, and pull request descriptions, such as task lists, read Writing on GitHub.

@roachhd
roachhd / Readme.md
Last active August 29, 2015 14:07
Bootswatch API demo

###a Bootswatch API demo

Check it out in action HERE

Awesome themes to get you started!

@roachhd
roachhd / markdown-example.md
Created October 11, 2014 05:28
markdown motherfuckers. daring fireball
@roachhd
roachhd / back-button.html
Created October 11, 2014 00:53
Back Button, uses browser history to go back to the last page.
<script>
function goBack() {
window.history.back()
}
</script>
<body>
<button onclick="goBack()">Go Back</button>
</body>