Skip to content

Instantly share code, notes, and snippets.

View colinmeinke's full-sized avatar

Colin Meinke colinmeinke

View GitHub Profile
-
title: Aloe Vera
description: >
<p>A description of aloe vera.</p>
name: Aloe barbadensis
origin: Peru
image: images/aloe-vera.jpg
alt: Aloe Vera
-
title: Lavendar
const update = async items => {
while (items.length > 0) {
const item = items.shift()
await Cart.removeItem(item.key)
}
}
<div id="wufoo-mmf0yf613z2vqw">
Fill out my <a href="https://colinmeinke.wufoo.com/forms/mmf0yf613z2vqw">online form</a>.
</div>
<div id="wuf-adv" style="font-family:inherit;font-size: small;color:#a7a7a7;text-align:center;display:block;">Use <a href="http://www.wufoo.com/gallery/templates/">Wufoo templates</a> to make your own HTML forms.</div>
<script type="text/javascript">var mmf0yf613z2vqw;(function(d, t) {
var s = d.createElement(t), options = {
'userName':'colinmeinke',
'formHash':'mmf0yf613z2vqw',
'autoResize':true,
'height':'743',
@colinmeinke
colinmeinke / style.scss
Created March 9, 2017 08:45
mixin v extend
// mixin
@mixin whitewash {
background-color: white;
border-color: white;
color: white;
}
.foo {
@include whitewash;
@colinmeinke
colinmeinke / sizes.md
Created November 18, 2016 14:28
Trov font sizing

Fonts

size/line-height

Mobile

  • large: 32px/42px
  • medium: 18px/26px
  • regular: 16px/22px
  • small: 14px/18px
@colinmeinke
colinmeinke / storage-adapters.md
Created September 30, 2016 11:34
Hard-coded writing to local file in Ghost

Storage adapters

Problem

Currently Ghost writes to the local file system for:

  • Creation of database backups
  • Uploading themes (currently hard-coded to use the local file storage adapter)
  • Unzipping directories
const a = animate( '.svg', [
{
from: {
offset: [ 10, 20 ],
fill: 'rgb( 100, 100, 100 )',
},
to: {
shape: 'circle',
cx: 50,
cy: 50,
import { updateId, updatePage, updateTags, getPosts, postsUpdating } from '../../actions';
import { meta } from '../../config';
const route = {
match: 'users/:id/posts',
title: state => `Blog of ${ state.user.name }`,
meta: state => [
...meta,
{ name: 'description', content: state.user.description },
],
@colinmeinke
colinmeinke / equals.js
Created March 2, 2016 17:54
simple recursive matching
const equals = ( a, b ) => {
if ( typeof a === 'object' && typeof b === 'object' && a !== null && b !== null ) {
for ( let k of Object.keys( a )) {
if ( !equals( a[ k ], b[ k ])) {
return false;
}
}
return true;
}
@colinmeinke
colinmeinke / tween.js
Last active March 1, 2016 21:36
Generators – good for tweening?
const state = {
position: 10,
};
const tween = function* ({ from, to }) {
let frames = 60;
while ( from !== to ) {
from = yield from + ( to - from ) / frames;
frames--;