Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>That was close.</title>
<style type="text/css">
body {
color: #FFF;
text-align: center;
font-size: 18px;
Deploybot
running
pause -> paused
continue -> running
stop -> stopped
paused
pause -> paused
continue -> running
stop -> stopped
// 1. Second dynamic argument — first is "guarenteed" to not interpolate
const Button = styled.button(`
/* Adapt the colors based on primary prop */
font-size: 1em;
margin: 1em;
padding: 0.25em 1em;
border: 2px solid palevioletred;
border-radius: 3px;
`, (props) => `
const Button = styled.button`
/* Adapt the colors based on primary prop */
background: ${props => window.innerWidth < 1000 ? 'palevioletred' : 'white'};
color: ${props => window.innerWidth < 1000 ? 'white' : 'palevioletred'};
font-size: 1em;
margin: 1em;
padding: 0.25em 1em;
border: 2px solid palevioletred;
border-radius: 3px;
Arithmetic {
Exp
= ComposeExp ("," ComposeExp ) * end
ComposeExp
= exportIdent + Source ?
Source
= "from" url
create_table :users, id: false do |t|
t.uuid :id, primary: true, null: false
# ...
end
require 'openssl'
class Webhooks::MailgunController < ApplicationController
skip_before_filter :verify_authenticity_token
before_filter :verify_webhook
def create
Librato.increment('webhook.mailgun.total')
case params['event']
“If something has a title, don’t use <h1>, use <div class="title”>” —wait, why? http://chrislloyd.com.au/post/54040765948/the-chris-lloyd-css-guide …

@mattrobs

Why I Hate HTML headings

Headings in HTML are like maintaining a numbered list of items in markdown:

  1. Foo
  2. Baz

Assembly CSS Styleguide

Here are some steps to CSS sanity. As always, this are guides, not rules. However, if you do find yourself breaking them ask yourself 5 whys. This usually leads to uncovering a misuderstanding of how CSS works or how a site's CSS works.

Read SMACSS

Never use ids

// This is bad

#foo-bar { }

/var/folders/nh/0vfgdp052_ngntv1_546c4tm0000gn/T/ruby-build.20130224115639.8902 ~
x openssl-1.0.1e/ACKNOWLEDGMENTS
x openssl-1.0.1e/apps/
x openssl-1.0.1e/apps/app_rand.c
x openssl-1.0.1e/apps/apps.c
x openssl-1.0.1e/apps/apps.h
x openssl-1.0.1e/apps/asn1pars.c
x openssl-1.0.1e/apps/ca.c
x openssl-1.0.1e/apps/ca-cert.srl
x openssl-1.0.1e/apps/CA.com