Skip to content

Instantly share code, notes, and snippets.

View michaelwhyte's full-sized avatar

Michael Whyte michaelwhyte

View GitHub Profile
@michaelwhyte
michaelwhyte / gulp-cjs-to-esm.md
Last active November 8, 2022 22:47 — forked from noraj/gulp-cjs-to-esm.md
Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)
@michaelwhyte
michaelwhyte / settings.json
Created September 14, 2020 21:05
Enable Emmet in React JS Component File in VS Code
"emmet.includeLanguages": {
"javascript": "javascriptreact"
}
@michaelwhyte
michaelwhyte / gulpfile.js
Last active September 4, 2019 23:22
Gulpfile for TWD Projects
// Gulpfile for TWD Projects - version 1.0.0
// Created by: Michael Whyte
// This Gulpfile is modified from code found here:
// https://github.com/thecodercoder/frontend-boilerplate
// *** IMPORTANT *** This Gulpfile requires Gulp version 4
// Initialize modules
// Import gulp specific API functions which allows us to write them
@michaelwhyte
michaelwhyte / batch-delete-gmail-emails.js
Created August 1, 2019 04:49 — forked from gene1wood/batch-delete-gmail-emails.js
A Google Apps Script script to bulk delete large amounts of email in Gmail while avoiding the error #793 which Gmail encounters normally
/*
This script, when used with Google Apps Scripts will delete 500 emails and
can be triggered to run every minute without user interaction enabling you
to bulk delete email in Gmail without getting the #793 error from Gmail.
Configure the search query in the code below to match the type of emails
you want to delete
Browser to https://script.google.com/.
Start a script and paste in the code below.
After you past it in, save it and click the little clock looking button.
@michaelwhyte
michaelwhyte / lighten-darken-color.js
Created June 29, 2019 00:39
Lighten or Darken Color with JavaScript
// Not my code
// This code is from:
// https://github.com/PimpTrizkit/PJs/wiki/12.-Shade,-Blend-and-Convert-a-Web-Color-(pSBC.js)
//
// License
/*
GNU Lesser General Public License v3.0
Permissions of this copyleft license are conditioned on making available complete source code
of licensed works and modifications under the same license or the GNU GPLv3. Copyright and
<?php // PHP include path that is root relative ?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/path/to/included/file.php'); ?>
{
"git.ignoreMissingGitWarning": true,
"emmet.triggerExpansionOnTab": true,
"path-autocomplete.extensionOnImport":true,
"editor.fontSize": 36,
"workbench.colorTheme": "Default Light+",
"terminal.integrated.fontSize": 24
}
@michaelwhyte
michaelwhyte / composer.json
Created August 3, 2018 16:12 — forked from rogeriopradoj/composer.json
mail.php - phpmailer + mailhog - send mail via smtp
{
"require": {
"phpmailer/phpmailer": "^5.2"
}
}
@michaelwhyte
michaelwhyte / .htaccess
Created June 14, 2018 22:31
Force HTTPS via .htaccess
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@michaelwhyte
michaelwhyte / drop-down-nav.css
Created May 31, 2018 14:23
Keyboard accessible drop down navigation
@charset "utf-8";
/* CSS Document */
body {
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html {
box-sizing: border-box;
}