* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
class Slack::Responder | |
def initialize(message) | |
@message = message | |
end | |
def respond? | |
response.present? | |
end |
module TwitterLib | |
def self.authenticate | |
libs = [Twitter, TweetStream] | |
libs.each do |lib| | |
lib.configure do |config| | |
config.consumer_key = ENV.fetch("TWITTER_CONSUMER_KEY") | |
config.consumer_secret = ENV.fetch("TWITTER_CONSUMER_SECRET") | |
config.oauth_token = ENV.fetch("TWITTER_OAUTH_TOKEN") | |
config.oauth_token_secret = ENV.fetch("TWITTER_OAUTH_SECRET") | |
end |
Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.
My top contenders, mostly based on popularity / community etc:
- Angular
- Backbone
- React
- Ember
Mostly about MVC (or derivatives, MVP / MVVM).
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
module.exports = { | |
port: 8000, | |
globals: { | |
$: 'jquery', | |
jQuery: 'jquery', | |
_: 'lodash', | |
Backbone: 'backbone', | |
Marionette: 'backbone.marionette', | |
moment: 'moment' | |
}, |
doctype html5 | |
html | |
head | |
title Test Page | |
body | |
.error #{message} | |
form(action='/login' method='POST') | |
label Email | |
input(type='email' name='email') |
Medium uses a strict subset of LESS for style generation. This subset includes variables and mixins, but nothing else (no nesting, etc.).
Medium's naming conventions are adapted from the work being done in the SUIT CSS framework. Which is to say, it relies on structured class names and meaningful hyphens (i.e., not using hyphens merely to separate words). This is to help work around the current limits of applying CSS to the DOM (i.e., the lack of style encapsulation) and to better communicate the relationships between classes.
Table of contents