Skip to content

Instantly share code, notes, and snippets.

On vacation

Matthew Pence ohiosveryown

On vacation
Block or report user

Report or block ohiosveryown

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
ohiosveryown / index.html
Last active Sep 10, 2019
Supersymmetry Header / Section Relationship
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
ohiosveryown / target-multiple-elements.js
Last active May 6, 2019
Target / Get multiple elements
View target-multiple-elements.js
<ul class="parent">
<li class="children"></li>
<li class="children"></li>
<li class="children"></li>
const parent = document.querySelector('.parent')
const children = document.querySelectorAll('.children')
View reset.scss
:root {
--system-font: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
ohiosveryown / random.js
Created Nov 5, 2018
Single Random Entry from Array
View random.js
const h1 = document.querySelector('h1')
const pages = [
'<a target="_blank" href="">Google</a>',
'<a target="_blank" href="">Apple</a>',
'<a target="_blank" href="">Nike</a>',
'<a target="_blank" href="">Adidas</a>',
const page = pages[~~(Math.random() * pages.length)]
// const page = pages[pages.length * Math.random() | 0]
View arrow-function-shorthand.js
const trigger = document.querySelector('button')
trigger.addEventListener('click', () => {
trigger.addEventListener('mouseenter', () => {
ohiosveryown / array.vue
Last active Nov 5, 2018
Object Array for Vue
View array.vue
<h1>{{ object.first }} {{ object.last }}</h1>
<p>{{ object.age }}</p>
ohiosveryown /
Last active Jan 30, 2018 — forked from alishalisha/
Checking state on product design patterns

Checking the State of Your States

If applicable, make sure your design component accounts for all these states. This is basically copied from the Nine States of Design Medium article. 😛

  • Initial state: What happens before your component does anything? Maybe it’s the first time a user sees it. Maybe it’s not activated yet. Essentially, the component exists but hasn’t started.
  • Loading state: Have you accounted for when a user will be waiting for something to happen? What does that look like?
  • Empty/Zero state: Your component has initialized, but it’s empty. No data. No Items. Now may be a good time to get the user to act (“Do this thing!”), or to reward them (“Good job, everything is taken care of”).
  • One state: You have some data. On an input, this may be after the first keystroke. In a list, it might be when you have one item (or one left).
  • Some data state: This is usually what you
ohiosveryown / click.vue
Last active Nov 5, 2018
vue click bind
View click.vue
<!-- layout -->
<router-link to="/">
<div class="mw-grid debug">
<img v-bind:class="{ triggerActive: move }" @click="move = !move" class="debug center" src="" alt="">
ohiosveryown / easing.css
Created Jun 20, 2017
CSS Easing Variables
View easing.css
/* */
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
You can’t perform that action at this time.