Skip to content

Instantly share code, notes, and snippets.

View jakecobley's full-sized avatar

Jake Cobley jakecobley

View GitHub Profile
@jakecobley
jakecobley / .eslintignore
Last active April 4, 2023 08:50
ESLint configuration extending Airbnb's and VueJS's configurations (targeting JavaScript and VueJS files).
################################################################################
# Node
################################################################################
node_modules
################################################################################
# Compiled Directories & Files
################################################################################
@jakecobley
jakecobley / .stylelintignore
Last active September 13, 2022 00:00
Stylelint configuration extending the standard configuration (targeting CSS and Vue files).
################################################################################
# Node
################################################################################
node_modules
################################################################################
# Compiled Directories & Files
################################################################################
@jakecobley
jakecobley / .devcontainer.json
Last active June 16, 2022 01:17
VueJS/ReactJS/JavaScript Single Page Application (SPA) development environment using Docker, Docker Compose, Visual Studio Code's 'Remote Containers' extension, and NGINX.
{
"name": "vs-code-remote-containers_workspace",
"dockerComposeFile": "../docker-compose.yml",
"service": "workspace",
"workspaceFolder": "/workspace",
// Extensions
// Add the IDs of extensions to be installed within Visual Studio Code when
// the container is created.
"extensions": [
@jakecobley
jakecobley / .eslintignore
Created November 14, 2020 23:37
ESLint configuration extending Airbnb's configuration.
################################################################################
# Node
################################################################################
node_modules
################################################################################
# Compiled Directories & Files
################################################################################
@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 / .gitignore
Last active November 14, 2020 23:17
gitignore configuration for VueJS applications.
################################################################################
# Node
################################################################################
node_modules
################################################################################
# Environment Variables
################################################################################
@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 / 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 / .dockerignore
Created June 13, 2020 01:02
WordPress development environment using Docker & Docker Compose.
################################################################################
# Docker
################################################################################
.dockerignore
docker-compose*
Dockerfile*
################################################################################
# Git
@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