Skip to content

Instantly share code, notes, and snippets.

View eddybrando's full-sized avatar

Eddybrando Vásquez eddybrando

View GitHub Profile
@eddybrando
eddybrando / multiline-ellipsis.css
Created February 7, 2019 21:24
Displays two lines of text and truncates the rest whilst appending an ellipsis
.multine-ellipsis {
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
@eddybrando
eddybrando / multiline-ellipsis.scss
Created February 7, 2019 21:23
Displays two lines of text and truncates the rest whilst appending an ellipsis
.multine-ellipsis {
/* autoprefixer: ignore next */ // scss-lint:disable Comment
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
@eddybrando
eddybrando / .jshintrc
Last active February 4, 2019 10:47
JSHint basic configuration file for ES5 projects
{
"bitwise": true, // Prohibit bitwise operators (&, |, ^, etc.)
"curly": true, // Require {} for every new block or scope
"eqeqeq": true, // Require triple equals (===) for comparison
"esversion": 5, // Enable ECMAScript 5 syntax
"forin": true, // Require filtering for..in loops with obj.hasOwnProperty()
"freeze": true, // Prohibits overwriting prototypes of native objects such as Array, Date etc.
"futurehostile": true, // Enable warnings about identifiers defined in future JavaScript versions
"latedef": true, // Require variables/functions to be defined before being used
"maxcomplexity": false, // Disable cyclomatic complexity test

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?