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 / README.md
Created December 4, 2013 15:48 — forked from hupili/README.md

Use Git to update your web server.

Many hosting service now supports not only FTP and web uploading but also SSH. It's more convenient to use the Git flow:

  • Modify and test your site locally.
  • Push to remote Git repo, which triggers the update of your website.

My settings:

@johnpeele
johnpeele / osx
Created November 1, 2013 13:42
My Dotfiles
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Set computer name
sudo scutil --set ComputerName "cannonball"
sudo scutil --set HostName "cannonball"
sudo scutil --set LocalHostName "cannonball"
@johnpeele
johnpeele / perferences.json
Created August 22, 2012 13:21 — forked from soffes/perferences.json
My Sublime Text 2 config
{
"color_scheme": "Packages/User/Monokai Soda.tmTheme",
"theme": "Soda Dark.sublime-theme",
// "theme": "Soda Light.sublime-theme",
"soda_classic_tabs": true,
"fade_fold_buttons": false,
"bold_folder_labels": true,
"highlight_modified_tabs": true,
"save_on_focus_lost": true,
"tab_size": 2,
@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
});