Skip to content

Instantly share code, notes, and snippets.

View Kevinlearynet's full-sized avatar

Kevinleary.net Kevinlearynet

View GitHub Profile
{
"anonymousId": "6aaa00b4-71d4-4ae0-9fb0-46a1bd240f36",
"context": {
"library": {
"name": "analytics.js",
"version": "3.4.0"
},
"page": {
"path": "/term-quote/",
"referrer": "",
@Kevinlearynet
Kevinlearynet / uniconverter.rb
Created April 14, 2017 16:23
Uniconverter formula for Homebrew
require 'formula'
class Uniconvertor < Formula
homepage 'http://sk1project.org/modules.php?name=Products&product=uniconvertor'
url 'http://sk1project.org/dc.php?target=uniconvertor-1.1.5.tar.gz'
sha256 '51ec7c4487048c3357ed95cdb4ab3524018a2c9e'
depends_on 'sk1libs'
# make it see it's own and sk1libs modules
require 'formula'
class Uniconvertor < Formula
homepage 'http://sk1project.org/modules.php?name=Products&product=uniconvertor'
url 'http://sk1project.org/dc.php?target=uniconvertor-1.1.5.tar.gz'
sha256 '51ec7c4487048c3357ed95cdb4ab3524018a2c9e'
depends_on 'sk1libs'
# make it see it's own and sk1libs modules
<h2 class="dinner-title">Dinner Menu</h2>
<div class="dinner-item">
<h3><a id="toggleDisplay"></a>Seasonal Selections</h3>
<div id="mspecials" style="display: none;">
<h4>Cocktails</h4>
<strong>watermelon sangria</strong>
summer in a glass...nantucket's triple 8 cranberry vodka, red moscato and a watermelon float glass 6.99 / pitcher 15.99
<strong>rootbeer float</strong>
tito’s hand-made vodka, sambuca, root beer and vanilla ice cream 7.99
@Kevinlearynet
Kevinlearynet / Magnific Config
Last active May 11, 2016 17:55
Maginfic config throws errors with .split( "_" ) method in _parseMarkup()
{
"items": [
{
"src": "#golden-union-fish-bar-1",
"type": "inline"
},
{
"src": "#trident-fish-chips-2",
"type": "inline"
},
@Kevinlearynet
Kevinlearynet / popular
Created January 19, 2016 15:04
QZ.com popular posts object, same as our /entries
.navbar__mobile-search__close {
display: none;
@include mq($nav-02) {
@include input-default;
display: block;
@include absolute(20px 20px n n);
@include size(20px);
background: #fff;
@Kevinlearynet
Kevinlearynet / gist:6f25c676f257b9acad79
Created May 7, 2015 16:09
Hapi's prerequisite methods
/**
* /in/profile/edit
*/
'edit': {
auth: {
mode: "try",
strategy: global.__config.cookie.strategy
},
plugins: {
"hapi-auth-cookie": {
@Kevinlearynet
Kevinlearynet / controller.js
Last active August 29, 2015 14:20
Hapi.js plugin to autoversion files based on when they last changed: `/file.js?v={mtime_timestamp}`
/**
* DFP Test Page Controller
*
* This pulls in the data we need to output
* a story URL
*
* @pattern /dfp/
*/
'use strict';
@Kevinlearynet
Kevinlearynet / _elements.html
Last active August 29, 2015 14:15
Static Site Engines with Node + Express Code Samples
# Elements
Fundamental building blocks of MIT Technology Review's digital styles.
## Doctype
{{ organization }} makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.
### HTML
```html
<!DOCTYPE html>
<html lang="en">