Skip to content

Instantly share code, notes, and snippets.

View reubeningber's full-sized avatar

Reuben Ingber reubeningber

View GitHub Profile
<div
class=quicklinks-container
data-track-click="[JSON]"
>
<a
href=pizza.com
class=quicklink-item
data-track-click-trigger="[index: 1]"
>
Best Pizza
@reubeningber
reubeningber / file-structure
Created April 17, 2024 20:34
Tout Layout Components
tout-layout/
style.scss
template.hbs // Not sure we need this
variation/
single.hbs
two-col.hbs
three-col.hbs
stacked.hbs
styles/
single-style.scss
resource "ns1_record" "www_businessinsider_com_CNAME" {
zone = "${ns1_zone.businessinsider_com.zone}"
domain = "www.${ns1_zone.businessinsider_com.zone}"
type = "CNAME"
use_client_subnet = "false"
answers {
answer = "f.shared.global.fastly.net."
}
}
resource "ns1_zone" "businessinsider_com" {
zone = "businessinsider.com"
}
#! /usr/bin/env python3
from ns1 import NS1
from pprint import pprint
import yaml
import os
def validate_record(api, zone, records):
 print("records")
 # pprint(records)
 print(records['short_answers'])
 zone_api = api.loadZone(zone)
data = {
"customer_name": "businessinsider",
"user_name": "<REDACTED>",
"password": "<REDACTED>"
}
headers = {
'Content-type': 'application/json',
'Accept': 'text/plain'
}
var POP_UP_WIDTH = 700,
POP_UP_HEIGHT = 500;
function init() {
$(document).on('click', '.js-share-pop-up', function(e) {
e.preventDefault();
var $this = $(this),
shareURL = $this.data('shareUrl'),
@reubeningber
reubeningber / fitTextHelper.js
Created October 20, 2014 18:33
FitText Helper
// FitText
// Add class js-fit-text & Set the following data-attributes: data-fit-compressor="<compressor value>" data-fit-max-font-size=<size>px" data-fit-min-font-size="<size>px"
$('.js-fit-text').each(function() {
var $this = $(this),
fitCompressor = $this.data('fit-compressor') || 1,
fitMaxFontSize = $this.data('fit-max-font-size') || Number.POSITIVE_INFINITY,
fitMinFontSize = $this.data('fit-min-font-size') || Number.NEGATIVE_INFINITY;
$this.fitText(fitCompressor, {maxFontSize: fitMaxFontSize, minFontSize: fitMinFontSize});
});
@reubeningber
reubeningber / threeUp.less
Created October 17, 2014 19:46
ThreeUp.less
.three-up {
padding: 50px 0;
.clearfix();
}
.three-up-unit {
float: left;
margin: 0 25px 0 0;
.calc(width, ~'33% - 25px');
.box-sizing(border-box);