Skip to content

Instantly share code, notes, and snippets.

View mcgwier's full-sized avatar

Jason Mcgwier mcgwier

View GitHub Profile
@mcgwier
mcgwier / pricing-models.md
Created July 31, 2022 16:11 — forked from luclemo/pricing-models.md
Talk on pricing models for freelancers along with pros and cons #biz

Pricing Models

The following is a rough breakdown of different popular pricing models in freelancing, as well as some pros & cons for each one.

✌️ Note: There is no ONE way to this. Much of your approach to pricing will be influenced by the type of clients & projects you work with, as well your own personality. Also, to this day I have not worked for/with agencies so I will update this doc based on your feedback.

1. Hourly Pricing

It's the model we, and most of North America, is most familiar with.

Design Process

The Design Team is ultimately responsible for completing the steps in this process, although responsibility for performing the tasks in each step may reside with the Product or Engineering teams.

##Steps

The Design Process follows these 5 steps:

  1. Scope
@mcgwier
mcgwier / functions.php
Last active March 10, 2020 18:09
Instant WordPress Optimizations
// --- Front-end Enhancements and Optimizations ---- //
if (!is_admin()) {
// Function to defer or asynchronously load scripts
function js_async_attr($tag){
# Do not add defer or async attribute to these scripts
$scripts_to_exclude = array('script1.js', 'https://domain.com/wp-includes/js/jquery/jquery.js');
@mcgwier
mcgwier / index.html
Last active July 22, 2019 16:56
Vertically center content in a vh height div
<html>
<head>
<style type="text/css">
.fullwidth-header {
background-image: url(https://papermud.com/_playground/dashboard.png);
background-repeat: no-repeat;
background-position: center center;
background-size: cover !important;
height: 100vh;
background-color: #3422ce;
@mcgwier
mcgwier / index.html
Created May 21, 2019 16:27
Assorted Cards (Flex + BEM)
<div class='main-container'>
<div class='grid-container'>
<div class='card card--2x'>
<div class='card__content big-script padding-large'>
<p>Travel and see the world</p>
</div>
</div>
<div class='card'>
<div class='card__image'>
<img src='https://images.pexels.com/photos/443416/pexels-photo-443416.jpeg?auto=compress&amp;cs=tinysrgb&amp;h=750&amp;w=1260'>
@mcgwier
mcgwier / quotes_db.sql
Created March 14, 2019 01:10 — forked from jiskandar/quotes_db.sql
this is quotes database that i've grab from web
This file has been truncated, but you can view the full file.
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 01, 2013 at 07:57 AM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
@mcgwier
mcgwier / link_hover.css
Created December 21, 2017 20:10
Clean underline link:hover transition (smooth underline width from 50% to 100%)
@mcgwier
mcgwier / wordpress_query_reference.php
Last active July 22, 2019 17:56
WordPress Query Reference
<?php
/**
* WordPress Query Reference
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
//////Author Parameters - Show posts associated with certain author.
@mcgwier
mcgwier / git_cheats.md
Created January 24, 2017 22:04
Git Cheatsheet
@mcgwier
mcgwier / footer.php
Created January 15, 2017 23:31
A Better WordPress Footer