Skip to content

Instantly share code, notes, and snippets.

View grevory's full-sized avatar

Gregory Pike grevory

View GitHub Profile
@grevory
grevory / Templating.markdown
Created January 21, 2014 06:35
A Pen by Gregory Pike.

Templating

A simple template function that compiles data into the template.

Built for demoing my Andraia Mobile JS framework.

A Pen by Gregory Pike on CodePen.

License.

@grevory
grevory / compile-css
Created November 3, 2013 05:59
A simple script to compile CSS from LESS for a production environment
#!/bin/bash
LESSCSS="First parameter"
COMPILEDCSS=$2
if [ -z "$1" -o -z "$2" ]; then
echo "To use compile-css pass 1. less file 2. compiled css file"
fi
if [[ $1 ]]; then
LESSCSS=$1
@grevory
grevory / bootstrap-photo-with-caption.html
Created April 12, 2013 04:47
Simple markup for adding captions and credits to images with Twitter Bootstrap.
<style>
.thumbnail.with-caption {
display: inline-block;
background: #f5f5f5;
}
.thumbnail.with-caption p {
margin: 0;
padding-top: 0.5em;
}
.thumbnail.with-caption small:before {
@grevory
grevory / html5-starter.html
Last active February 13, 2023 13:12
HTML5 Starter Template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML5 Starter Template</title>
<meta name="description" content="Starter Template">
<meta name="author" content="Gregry Pike">
<link rel="stylesheet" href="css/styles.css?v=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@grevory
grevory / console.log.sublime-snippet
Last active December 10, 2015 14:08
A quick-reference snippet for sublime that creates a console.log() call.
<snippet>
<content><![CDATA[
console.log(${1:this});
]]></content>
<tabTrigger>cons</tabTrigger>
</snippet>