Skip to content

Instantly share code, notes, and snippets.

View johnpeele's full-sized avatar
🏠
Working from home

John Peele johnpeele

🏠
Working from home
View GitHub Profile
@johnpeele
johnpeele / keybase.md
Created October 1, 2018 16:19
Keybase Proof

Keybase proof

I hereby claim:

  • I am johnpeele on github.
  • I am johnpeele (https://keybase.io/johnpeele) on keybase.
  • I have a public key ASBJNlXDrv6BNs0hUVjylOi0JM5qOPWYOZ-iGdqbJBfHWgo

To claim this, I am signing this object:

@johnpeele
johnpeele / gist:39665e1d8fa8ebe5c3d2190c64799dcc
Created September 5, 2016 16:53 — forked from boucher/gist:1750368
Stripe sample checkout form
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Sample Form</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<script type="text/javascript">
#### Purpose:
#### Notes to reviewer:
#### Screenshots:
![Screenshot]()
#### To do (if needed)
- [ ] [add a todo... or a few]
/ A simplistic way of loading and rendering HAML partials (header.haml, footer.haml, nav.haml... you name it) without Rails
/ Useful when using tools like LiveReload http://livereload.com/
/ but don't want to configure a web server just to use PHP include/require constructs (discussion http://help.livereload.com/discussions/questions/22-haml-partials)
/ It could be improved/simplified using a helper http://stackoverflow.com/questions/5436769/partial-haml-templating-in-ruby-without-rails/5436973#5436973
/ Check out the Jade version https://gist.github.com/2593727
%html
%body
%header
= Haml::Engine.new(File.read('/path/to/your/partial.haml')).render
@johnpeele
johnpeele / statamic.nginx.conf
Last active August 29, 2015 14:23
Statamic Nginx Conf
server {
listen 80;
listen [::]:80;
root /usr/share/nginx/html/livevictorious.com/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
#server_name localhost;
server_name livevictorious.com www.livevictorious.com;

Tiny Content Framework

About the Project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Contribute

There’s more to come, and I’d love to hear what you think. Give me feedback on Twitter (@nicoleslaw) or by email (nicole@nicolefenton.com). We all benefit from sharing our ideas and creating standards. Onward.

@johnpeele
johnpeele / gulpfile.js
Created November 14, 2014 13:29
Gulp / Harp with BrowserSync
var gulp = require('gulp');
var browserSync = require('browser-sync');
var cp = require('child_process');
var harp = require('harp')
gulp.task('serve', function (done) {
harp.server('.', {
port: 9000
});
@johnpeele
johnpeele / gulpfile.js
Last active August 29, 2015 14:09 — forked from superhighfives/gulpfile.js
Gulp / Harp with BrowserSync
var gulp = require('gulp');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var deploy = require('gulp-gh-pages');
var cp = require('child_process');
var harp = require('harp')
/**
* Serve the Harp Site
*/
@johnpeele
johnpeele / gulpfile.js
Last active August 29, 2015 14:09 — forked from geelen/gulpfile.js
Serve Harp with Gulp and Browsersync
var gulp = require('gulp');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var harp = require('harp');
/**
* Serve the Harp Site from the src directory
*/
gulp.task('serve', function () {
harp.server(__dirname + '/src', {
//
// I should probably have turned this into a theme…
// but who has time for that?
//
// Installation:
// 1. Choose "Solarized Dark" as your theme.
// 2. Install Input from http://input.fontbureau.com/
// (It's free for personal use.)
// 3. Stick the contents of this file into your Atom stylesheet.