Skip to content

Instantly share code, notes, and snippets.

View tzi's full-sized avatar
👨‍🎓
enseigner les CSS

Thomas ZILLIOX tzi

👨‍🎓
enseigner les CSS
View GitHub Profile
@tzi
tzi / component.scss
Last active September 3, 2017 15:03
Using a "next generation mixin" to generate themes in sass
// 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,
);

Keybase proof

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:

@tzi
tzi / A-lire.md
Last active June 22, 2016 12:29
Ma Bibliothèque

A Lire

Alain Damasio

  • La Horde du Contrevent [Fantasy] | amazon

    un classique à lire absolument (@bastnic)

  • La Zone du Dehors [SF] | amazon

Verifying that +tzi is my blockchain ID. https://onename.com/tzi
# 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
@tzi
tzi / debounce.js
Last active November 21, 2022 02:30
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);
@tzi
tzi / index.md
Last active April 15, 2016 10:05
BEM References

It's gone!

See you there ;)

@tzi
tzi / index.html
Last active March 3, 2016 14:16
MorningJS - A simple lib to create widget
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>MorningJS</title>
<style>
/* Global styles have no effect on widget */
h1 {
font-weight: normal;
}
@tzi
tzi / SassMeister-input.scss
Created February 15, 2016 13:41
Generated by SassMeister.com.
// ----
// 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);