Skip to content

Instantly share code, notes, and snippets.

View raulghm's full-sized avatar
🏠
Working from home

Raúl raulghm

🏠
Working from home
View GitHub Profile
$module: 'block';
.#{$module} {
&__element {
}
&--modifier {
.#{$module}__element {
}
@lagden
lagden / Custom-select-box.markdown
Created November 25, 2014 22:02
Custom select box
@bobbygrace
bobbygrace / trello-css-guide.md
Last active December 10, 2024 21:04
Trello CSS Guide

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


Trello CSS Guide

“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?

@simonsmith
simonsmith / example.js
Created March 16, 2015 00:23
Compiling SUIT with gulp and postcss
var gulp = require('gulp');
var bemLinter = require('postcss-bem-linter');
var atImport = require('postcss-import');
var cssnext = require('cssnext');
var postcss = require('gulp-postcss');
var concat = require('gulp-concat');
var notify = require('gulp-notify');
var stylus = require('gulp-stylus');
gulp.task('css', function() {
@laptrinhcomvn
laptrinhcomvn / Sublime Text 3 cheating.md
Last active April 16, 2025 16:52
Sublime Text 3 patching

Ref: https://gist.github.com/vertexclique/9839383

Important Note

Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).

Common step after enter run the patch command:

  • After run the commands, start new Sublime Text app, go to Main Menu > Help > Enter License. On the popup type in any text (example "a") and click Use Licence .
@AllThingsSmitty
AllThingsSmitty / negative-nth-child.css
Created July 23, 2015 14:45
Use negative nth-child to select items 1 through n
li {
display: none;
}
/* select items 1 through 3 and show them */
li:nth-child(-n+3) {
display: block;
}
@raulghm
raulghm / semantic_versioning.md
Last active August 29, 2015 14:26
Semantic Versioning

Semantic Versioning

1.2.3

major minor patch
1 2 3

major: incompatible API changes

@juanbrujo
juanbrujo / npm-starter.js
Last active February 11, 2024 23:16
Starter for a basic NPM module
// moduleName = name of your npm module
var moduleName = (function moduleName() {
"use strict";
// YOUR PRETTY JS CODE THAT WILL CHANGE THE WORLD
// return whatever;
})( this );
@JoshKaufman
JoshKaufman / digitalocean console paste.js
Created January 7, 2016 00:17
enables sending string to digitalocean web console stdin
var sendString = (function(rfb, force, sendDelay) {
sendDelay = sendDelay || 25;
var _q = [];
var _qStart = function() {
var chr = _q.shift();
if (chr) {
rfb.sendKey(chr);
setTimeout(_qStart, sendDelay);
}
};