Skip to content

Instantly share code, notes, and snippets.

View adebree's full-sized avatar

Arne de Bree adebree

View GitHub Profile
@alekseykulikov
alekseykulikov / index.md
Last active December 4, 2025 03:23
Principles we use to write CSS for modern browsers

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 7668 lines of CSS (and just 2 !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:

@Qwerios
Qwerios / gist:11371459
Last active January 22, 2018 17:01
Setting up private NPM repository

Official npm mirror

The main idea is to make an official NPM mirror as detailed here: https://github.com/npm/npm-registry-couchapp

Unfortunately the above instructions appear to be flawed and didn't working for me. Thankfully someone has taken the time to create an updated set of installation instructions: https://github.com/rvagg/npmjs.org/tree/new-install-docs

Bug with updated instructions

Only one problem remains with the above instructions and that is the credentials for the copy script. In copy.sh you need to fix the credentials for curl. Change this (line 46):

@axelav
axelav / gist:1839777
Created February 15, 2012 22:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt