Skip to content

Instantly share code, notes, and snippets.

View eddybrando's full-sized avatar

Eddybrando Vásquez eddybrando

View GitHub Profile
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@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