Skip to content

Instantly share code, notes, and snippets.

View ritcheyer's full-sized avatar
🏠
Working from home

Eric Ritchey ritcheyer

🏠
Working from home
  • E&J Design
  • Lincoln, CA
View GitHub Profile

Round 1

Helen

3 rounds for time

400 meter run
1.5 pood Kettlebell swing x 21
Pull-ups 12 reps
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: '/' },
<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>
</ol
</nav>
</div>
// ----- Base Reset
// ----------------------------------------------------
* {
box-sizing: border-box;
}
html {
line-height: 1.25;
}
// Define the "system" font family
<script>
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 })
}
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
$(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
ritcheyer / Premailer.php
Created May 4, 2016 14:34 — forked from Synchro/Premailer.php
PHP interface class for the Premailer API
<?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 http://premailer.dialect.ca/api
* @author Marcus Bointon <marcus@synchromedia.co.uk>
*/
@ritcheyer
ritcheyer / Stash PR Template.js
Last active February 13, 2020 21:21
Github recently released their PR Templates: https://github.com/blog/2111-issue-and-pull-request-templates. This is a slightly modified version of the one found here: https://quickleft.com/blog/pull-request-template-bookmarklet/ to work with Stash
// 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
ritcheyer / post-update-slack
Created January 11, 2016 09:20 — forked from dopiaza/post-update-slack
Git post-update commit hook to post a message to a Slack channel. Uses https://gist.github.com/dopiaza/6449505
#!/bin/bash
# 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")