Skip to content

Instantly share code, notes, and snippets.

View jakecobley's full-sized avatar

Jake Cobley jakecobley

View GitHub Profile
# Handle line endings automatically for files detected as text and leave all
# files detected as binary untouched. This will handle all files NOT defined
# below.
* text eol=lf
################################################################################
# Source Code
################################################################################
*.css text
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
@jakecobley
jakecobley / .browserslistrc
Last active April 29, 2020 16:13
Browserslist configuration explicitly targeting modern browsers.
last 2 ChromeAndroid versions
last 2 Chrome versions
last 2 iOS versions
last 2 Safari versions
last 2 Samsung versions
last 2 FirefoxAndroid versions
last 2 Firefox versions
@jakecobley
jakecobley / .gitignore
Created June 13, 2020 00:58
gitignore configuration for WordPress sites.
################################################################################
# WordPress
################################################################################
!wp-content
wp-content/*
!wp-content/mu-plugins
wp-content/mu-plugins/*
!wp-content/mu-plugins/.keep
@jakecobley
jakecobley / .dockerignore
Created June 13, 2020 01:02
WordPress development environment using Docker & Docker Compose.
################################################################################
# Docker
################################################################################
.dockerignore
docker-compose*
Dockerfile*
################################################################################
# Git
@jakecobley
jakecobley / LICENSE
Last active August 3, 2020 10:33
ISC Licence
Copyright (c) 20XX, Jake Cobley
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Source: http://opensource.org/licenses/ISC
@jakecobley
jakecobley / css-utilities.js
Last active September 18, 2020 13:02
PostCSS configuration.
module.exports = {
/**
* Convert pixel values to rem values.
*
* @param {number} pixelValue
*
* @returns {string}
*/
px2rem: (pixelValue) => {
const remValue = pixelValue / 16;
@jakecobley
jakecobley / .gitignore
Last active November 14, 2020 23:17
gitignore configuration for VueJS applications.
################################################################################
# Node
################################################################################
node_modules
################################################################################
# Environment Variables
################################################################################
@jakecobley
jakecobley / .dockerignore
Last active November 14, 2020 23:27
VueJS/ReactJS/JavaScript Single Page Application (SPA) NGINX Dockerfile
################################################################################
# Docker
################################################################################
.dockerignore
docker-compose*
Dockerfile*
################################################################################
# Git
@jakecobley
jakecobley / .eslintignore
Created November 14, 2020 23:37
ESLint configuration extending Airbnb's configuration.
################################################################################
# Node
################################################################################
node_modules
################################################################################
# Compiled Directories & Files
################################################################################