Skip to content

Instantly share code, notes, and snippets.

Working from home

Eric Ritchey ritcheyer

Working from home
Block or report user

Report or block ritcheyer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 2019 12

Round 1


3 rounds for time

400 meter run
1.5 pood Kettlebell swing x 21
Pull-ups 12 reps
View app.js
Vue.component('list-item', {
props: ['text', 'link'],
template: '<li><a :href="link">{{ text }}</a></li>'
new Vue({
el: '#sidemenu',
data: {
links: [
{ id: 0, text: 'Index', link: '/' },
View marketing-carousels.html
<div class="mktg_carousel-container" style="--translateX: 0">
<header class="mktg_carousel-header">...</header>
<nav class="mktg_carousel-navigation navigation--inline">
<ol class="mktg_carousel-items">
<li class="mktg_carousel-item carousel-item--active">...</li>
View reset.css
// ----- Base Reset
// ----------------------------------------------------
* {
box-sizing: border-box;
html {
line-height: 1.25;
// Define the "system" font family
View tracker.js
var users_email = window.localStorage.getItem('leadpages-role-email');
var users_fname = window.localStorage.getItem('leadpages-role-first_name');
if( users_email !== null) {
seg.identify({ 'Email' : users_email });
if( users_fname !== null) {
seg.identify({ 'FirstName': users_fname })
View script.js
window.onload = function() {
var tslaBodyTag = document.body,
tslaMenuMask = document.getElementById('tsla-header-mask'),
tslaMenuHeader = document.getElementById('tsla-header-main'),
tslaMenuCheckbox = document.getElementById('tsla-header-main--trigger'),
tslaHeaderCheckboxes = document.getElementsByClassName('tsla-header-checkbox');
window.addEventListener('resize', tslaResize);
// if the browser window is greater than or equal to 640, uncheck checkboxes
View tiles.js
$(document).ready(function() {
/// other things up here
$('.tsla-card_container').on('click', '.tsla-card_tile', function() {
var $this = $(this);
if ($this.hasClass('tsla-card-has_overlay')) {
var toCopy = $this.find('.tsla-card_tile--meta').text();
copyColorVariable(toCopy, $this);
ritcheyer / Premailer.php
Created May 4, 2016 — forked from Synchro/Premailer.php
PHP interface class for the Premailer API
View Premailer.php
* Premailer API PHP class
* Premailer is a library/service for making HTML more palatable for various inept email clients, in particular GMail
* Primary function is to convert style tags into equivalent inline styles so styling can survive <head> tag removal
* Premailer is owned by Dialect Communications group
* @link
* @author Marcus Bointon <>
ritcheyer / Stash PR Template.js
Last active Feb 13, 2020
Github recently released their PR Templates: This is a slightly modified version of the one found here: to work with Stash
View Stash PR Template.js
// Compressed version
javascript:(function() {var e = document.getElementById("pull-request-description");if (e) {var newValue = "## What does this PR do?\n\nPlease describe what this Pull Request provides.\n\n## Screenshots (if appropriate)\n\nPlease provide a screenshot of the changes made in this PR\n\n## Jira ticket(s)\n\nProvide a list of all affected tickets in this PR\n\n## Related Documentation Updates\n\nIf you updated documentation, please add that here for peer review. Consider using `> ` in front of any change such that it formats well\n\n## Commit History\n\n```\n";e.value = newValue + e.value + "\n```\n";}})();
// Uncompressed version
* There are slight changes made to the code in the uncompressd version simply
* to make things a bit more readable when editing the script. All necessary
* changes will be in the compressed version, so the changes below can largely
* be ignored as they are strictly for development purposes.
ritcheyer / post-update-slack
Created Jan 11, 2016 — forked from dopiaza/post-update-slack
Git post-update commit hook to post a message to a Slack channel. Uses
View post-update-slack
# This script is designed to be called from a git post-update hook
# Typical usage
# In your post-update hook, the first parameter is the branch ref. So in post-update, you would
# invoke this script something like this:
# /usr/local/bin/post-update-slack $1 <branch to match> <token> <channel>
# The script will only post to slack if the branch being updated matches the one listed as <branch to match>
# Use "any" to match any branch (hopefully you don't have a branch called "any")
You can’t perform that action at this time.