Skip to content

Instantly share code, notes, and snippets.

View szabototo89's full-sized avatar

Tamás Szabó szabototo89

View GitHub Profile
@szabototo89
szabototo89 / debug.scss
Last active July 12, 2017 09:24
Debug SCSS mixin for easier CSS debugging (https://codepen.io/anon/pen/mwaxro)
$colors: (red, blue, green, yellow, gray);
$colors-index: 0;
@mixin mark($type, $color) {
@if $type == outline {
outline: 5px solid $color;
}
@else {
background-color: $color;
}
function dictionaryToWords(text) {
if (text === '') return { };
var map = { };
var words = text.split(' ').filter(function(word) { return word !== ""; }); // [ I, *will*, fight, to, follow, I, will, fight, for, *love* ]
for (var i = 0; i < words.length; i++) {
var currentWord = words[i];
// map["love"] === undefined

Keybase proof

I hereby claim:

  • I am szabototo89 on github.
  • I am szabototo (https://keybase.io/szabototo) on keybase.
  • I have a public key whose fingerprint is 4DC4 BFE3 AC4E 5FAA 326C C268 7DEC DD6A 6D9C 5661

To claim this, I am signing this object: