- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 6561
lines of CSS (and just 5 !important
).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers:
# | |
# Acts as a nginx HTTPS proxy server | |
# enabling CORS only to domains matched by regex | |
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/ | |
# | |
# Based on: | |
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html | |
# * http://enable-cors.org/server_nginx.html | |
# | |
server { |
#! /bin/sh | |
# Run this from the folder you want to be the parent of your docs | |
# By default, generated docs go into | |
# titanium_mobile/dist/apidoc/ti_mobile_docs/ | |
# | |
# This can be changed below | |
git clone https://github.com/appcelerator/titanium_mobile.git | |
cd titanium_mobile | |
sudo apt-get install python-setuptools python-dev |
# require 'rake' | |
# require 'bundler' | |
# Bundler::GemHelper.install_tasks | |
dir = File.dirname(File.expand_path(__FILE__)) | |
# $LOAD_PATH.unshift dir + '/lib/fcg-service-servers' | |
require 'lib/fcg-service-servers/version' | |
require 'rspec/core/rake_task' |
module FCG | |
module Rest | |
attr_accessor :model | |
module ClassMethods | |
def restful(*args) | |
options = args.extract_options! | |
opts = { | |
:only => [:get, :post, :put, :delete], | |
:search => false | |
}.merge(options) |
module FCG | |
module Client | |
module Comment | |
# sort attributes | |
ATTRIBUTES = [:site, :record, :body, :body_as_html, :deleted, :flagged_by, :depth, :path, :parent_id, :displayed_name, :user_id] | |
module ClassMethods | |
end |
DB = { | |
:redis => SITE_REDIS, | |
:geo => GEO | |
} | |
SITES = DB[:redis].smembers("sites").inject({}) do |sum, site| | |
sum[site] = JSON.parse(DB[:redis]["site:#{site}"]) | |
sum | |
end |
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
# - a browser with WebSocket support | |
# | |
# Usage: | |
# ruby redis_pubsub_demo.rb | |
# |