This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Passing arguments from a mixin to a content block | |
// Planned for Sass 4 | |
// https://github.com/sass/sass/issues/871 | |
// File: common.scss | |
$theme-colors: ( | |
pink: #FF69B4, | |
orange: #FFA500, | |
); |
I hereby claim:
- I am tzi on github.
- I am tzi (https://keybase.io/tzi) on keybase.
- I have a public key whose fingerprint is D169 0312 DD9C 15E8 0BE0 D99D EF96 AFEB 72BB 5C41
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +tzi is my blockchain ID. https://onename.com/tzi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to search the "z-index" values of your CSS project | |
git grep -h "z-index" | sed -E "s/.*z-index\s*:\s*(-?[0-9]+).*/\1/" | sort | uniq -c | sort -b -r | |
# Explanations | |
# git grep -h "z-index" | |
# -> Find every line of your project that contain "z-index" | |
# sed -E "s/.*z-index\s*:\s*(-?[0-9]+).*/\1/" | |
# -> Only keep the property value | |
# sort | uniq -c | sort -b -r | |
# -> count the number of occurrences by value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function debounce(func, wait) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { | |
timeout = null; | |
func.apply(context, args); | |
}; | |
clearTimeout(timeout); | |
timeout = setTimeout(later, wait); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>MorningJS</title> | |
<style> | |
/* Global styles have no effect on widget */ | |
h1 { | |
font-weight: normal; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin responsive-calc($columns: 2, $under: 480px) { | |
$pre-computed-calc: #{($under * ($under / 1px))} - #{(100% * ($under / 1px))}; | |
display: inline-block; | |
min-width: ($under / 2); |