Skip to content

Instantly share code, notes, and snippets.

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

Jaymie Jones jaymiejones86

🏠
Working from home
View GitHub Profile

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

Web Development Contract for [project title]

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

So in short;

@jaymiejones86
jaymiejones86 / office_upgrades.md
Last active August 29, 2015 14:06
Office Upgrades
  • Dual Monitor Setup
  • Keyboard
  • Mouse/Trackpad
  • Chair
  • Desk
  • Raided NAS
  • Air con (that works and stops dogs from chewing cables to stuff it)
@jaymiejones86
jaymiejones86 / functions.php
Created September 23, 2014 23:10
Woocommerce Add Prices Beside Variant Items
//Add prices to variations
add_filter( 'woocommerce_variation_option_name', 'display_price_in_variation_option_name' );
function display_price_in_variation_option_name( $term ) {
global $wpdb, $product;
$result = $wpdb->get_col( "SELECT slug FROM {$wpdb->prefix}terms WHERE name = '$term'" );
$term_slug = ( !empty( $result ) ) ? $result[0] : $term;
@jaymiejones86
jaymiejones86 / database_cleaner.rb
Created May 9, 2014 05:21
Database Cleaner Config
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.strategy = Capybara.current_driver == :rack_test ? :transaction : :truncation
DatabaseCleaner.start
end
<?php
$args = array(
'post_type' => 'review',
'post_status' => 'publish',
'posts_per_page' => '-1',
'orderby' => 'ID',
'order' => 'DESC',
);
@jaymiejones86
jaymiejones86 / bootstahp.html
Created March 17, 2014 04:46
Bootstrap Kitchen Sink from divshot
<!doctype html>
<html>
<head>
<title>White Plum Kitchen Sink - Bootstrap 3 Theme</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../dist/css/bootstrap.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
@jaymiejones86
jaymiejones86 / rails_website_launch_checklist.md
Last active January 18, 2021 17:51
Rails Website Launch Checklist

Ruby on Rails Website Launch Checklist

Copy this gist and customise it to your liking.

  • Run Brakeman and resolve any issues where required
  • Run rails best practices and resolve any warnings
  • Run full test suite and make sure all tests are passing
  • Make sure no dummy email addresses are left in any notification emails (eg contact form)
  • Make sure production assets compile correct (eg files in vendor, etc, compile and are not 404'ing in production environment)
  • If using unicorn in production, make sure deploys are restarting the unicorns
@jaymiejones86
jaymiejones86 / setup.md
Last active January 17, 2018 18:21
My Average Rails App Setup

The Average Rails App Setup

Below outlines what is setup with my average rails app

Services

  • Digital Ocean/AWS Server/Heroku
  • AWS S3
  • Heroku Postgres
  • Skylight
%ul.social-share
%li.text Share on:
%li
- summary = "#{@gallery.title} #{@gallery.gallery_type} #{@gallery.subtitle}"
- link = "http://www.facebook.com/sharer/sharer.php?s=100&p[url]=#{url_encode(request.url)}&p[images][0]=&p[title]=#{url_encode(@gallery.title)}&p[summary]=#{url_encode(summary)}"
= link_to link, target: "_blank" do
%i.icon-facebook
%li
- status = "#{@gallery.title} #{@gallery.gallery_type} #{@gallery.subtitle}"
- link = "http://twitter.com/home?status=#{url_encode(status)}"