Skip to content

Instantly share code, notes, and snippets.

View bradfrost's full-sized avatar

Brad Frost bradfrost

View GitHub Profile
@bradfrost
bradfrost / gist:91931810b033a79cf8a9
Last active August 29, 2015 14:03
Example Mustache media object
<div class="block">
<img src="{{ img.square.src }}" alt="{{ img.square.alt }}" class="block__thumb" />
<div class="block__body">
<h2 class="block__title">{{ title }}</h2>
<p class="block__subtitle">{{ subtitle }}</p>
</div>
</div>
@bradfrost
bradfrost / gist:a7926cfea4dc742569d9
Created June 26, 2014 03:54
Example JSON file to feed Mustache pattern in Pattern Lab
{
"img": {
"square": {
"src": "../../images/fpo_square.png",
"alt": "Square Thumbnail"
},
},
"title" : "Lorem Ipsumdmada (32 characters)",
"subtitle" : "Dolar sit amee consectetur"
}
{{# person }}
{{> molecules-block }}
{{/ person }}
"person" : {
"img": {
"square": {
"src": "../../images/sample/avatar.jpg",
"alt": "Thisisauser Withaverylonglastname"
},
},
"title" : "Thisisauser Withaverylonglastname",
"subtitle" : "Chief Executive Officer"
}
"peopleList" : [
{
"img": {
"square": {
"src": "../../images/sample/avatar-1.jpg",
"alt": "Steve Boomshakalaka"
},
},
"title" : "Steve Boomshakalaka",
"subtitle" : "CIA"
{
"isAdmin" : true
}
@bradfrost
bradfrost / gist:c90ef0c63fdc38ad4512
Last active August 1, 2022 00:54
Atomic Design Book Original Outline

Atomic Design discusses the importance of crafting robust design systems, and introduces a methodology for which to create smart, deliberate, interface systems.

The book will begin by addressing the "why": why designers should care about thinking about Web interfaces in a more systematic way. I'll discuss the history of modular designsystems (after all, this type of thinking been around for a long while now), but discuss how the ever-shifting Web landscape is making systematic thinking a necessity. 

The first section will also discuss the emerging trends and techniques that encourage more systematic thinking: style tiles, element collages, pattern libraries, UI frameworks, and more. And while I'll certainly extol the virtues of these techniques, I'll also bring to light a lot of the shortcomings and frustrations of UI frameworks and pattern libraries. This sets the stage to introduce a more sound, deliberate way of constructing an interface system.

The second chapter will define atomic design. Atomic desig

@bradfrost
bradfrost / gist:0b8a5d082bde9fae5663
Created January 11, 2015 21:41
Jekyll Grunt Cluster
module.exports = function(grunt) {
// Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'compressed'
},
@bradfrost
bradfrost / gist:59096a855281c433adc1
Last active September 4, 2023 15:01
Why I'm Not A JavaScript Developer

Answering the Front-end developer JavaScript interview questions to the best of my ability.

  • Explain event delegation

Sometimes you need to delegate events to things.

  • Explain how this works in JavaScript

This references the object or "thing" defined elsewhere. It's like "hey, thing I defined elsewhere, I'm talkin' to you."

  • Explain how prototypal inheritance works.
@bradfrost
bradfrost / anatomy-of-a-successful-readme.md
Last active November 11, 2020 20:41
Anatomy of a successful README

Name of Project [version number] Build Status: Linux

]

[Introduction text about the project. This should be a short summary of the project that explains what it is and why anyone should care about it]

[optional image]

Getting Started

Requirements

[include a bulleted list of any dependencies your project requires. Include links to the dependencies, and additionally links to helpful resources to get up and running with the project's dependencies]