Skip to content

Instantly share code, notes, and snippets.

View michaelgarydean's full-sized avatar

Michael Gary Dean michaelgarydean

View GitHub Profile
# PROJECT: I AM NOT A ROBOT
# @see https://desbiens-desmeules.com/im-not-a-robot/
# @author Michael Gary Dean <contact@michaelgarydean.com>
# If path variables exist, start X server with no mouse cursor
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
# set path variables for NVM
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh
# PROJECT: I AM NOT A ROBOT
# OPENBOX KIOSK SETUP FOR NODE.JS APPLICATIONS TO AUTOLAUNCH
# @see https://gist.github.com/JakeSidSmith/859b4504432c1c3a55fdeacbf3ee6ffb
# @author Michael Gary Dean <contact@michaelgarydean.com>
#
# These things are run when an Openbox X Session is started.
# You may place a similar script in $HOME/.config/openbox/autostart
# to run user-specific things.
#
@michaelgarydean
michaelgarydean / parallax-grid.js
Last active November 25, 2020 17:58
Vanilla Javascript parallax scrolling of CSS grid items.
/**
* @description
* Vanilla Javascript parallax scrolling of items.
*
* @author Michael Gary Dean <contact@michaeldean.ca>
* @see https://codepen.io/RichBarber/pen/gdjPzv
*/
window.addEventListener('scroll', function() {
@michaelgarydean
michaelgarydean / email_custom_pdf.module
Created May 17, 2020 10:19
Email a webpage as a document that gets specially formatted as a PDF.
<?php
/**
* @file
* Module file for the email_custom_pdf module.
*/
/**
* Sends an email to the user.
*
@michaelgarydean
michaelgarydean / KP_Metabox.php
Created May 17, 2020 00:55
Object-oriented approach to adding new metaboxes with Wordpress
<?php
namespace KP\Post;
use KP\Post;
use KP\KP_Entity;
class KP_Metabox extends KP_Entity {
private $fields;
public $section;
@michaelgarydean
michaelgarydean / hushlamb-release-data.php
Last active June 1, 2020 09:23
Custom Meta Boxes and fields for Hushlamb release information
<?php
/**
* Plugin Name: Hushlamb Release Data
* Description: Custom Meta Boxes and fields for Hushlamb release information
* Author: Michael Dean
* Author URI: https://github.com/mykedean
* Text Domain: hushlamb
* Domain Path: /languages
* Version: 0.1.0
*
@michaelgarydean
michaelgarydean / fneeq-taxonomies.php
Created May 17, 2020 00:40
Personalized taxonomies used for the FNEEQ member's space.
<?php
/**
* Plugin Name: Taxonomies de la FNEEQ
* Plugin URI: https://github.com/mykedean/fneeq-taxonomies
* Description: Taxonomies personnalisées utilisées pour l'espace membre de la FNEEQ.
* Author: Michael Dean
* Author URI: https://github.com/mykedean
* Text Domain: fneeq-taxonomies
* Domain Path: /languages
* Version: 0.1.0
<?php
/**
* @file
* Module file for the portail_reformat_stop_words.module.
*
* This module is a solution to reformat titles that were input with 'stop words'
* between brackets. The idea was that titles shouldn't be sorted using common words like
* 'les', 'la' etc.
*
<?php
/**
* @file
* Module file for the portail_reformat_stop_words.module.
*
* This module is a solution to reformat titles that were input with 'stop words'
* between brackets. The idea was that titles shouldn't be sorted using common words like
* 'les', 'la' etc.
*
<?php
/**
* @file
* Module file for the portail_reformat_stop_words.module.
*
* This module is a solution to reformat titles that were input with 'stop words'
* between brackets. The idea was that titles shouldn't be sorted using common words like
* 'les', 'la' etc.
*