Skip to content

Instantly share code, notes, and snippets.

View ddx32's full-sized avatar
Ⓜ️
mediocre

Filip Ruzicka ddx32

Ⓜ️
mediocre
View GitHub Profile
function isElementInViewport (el) {
var rect = el.getBoundingClientRect();
return ( rect.top <= (window.innerHeight || document.documentElement.clientHeight) - document.documentElement.clientHeight * 0.6 );
}
var el = document.querySelectorAll('.item');
var handler = function() {
for (var i = 0; i < el.length; i++) {
@ddx32
ddx32 / keybase.md
Created May 27, 2017 14:26
Keybase vf

Keybase proof

I hereby claim:

  • I am ddx32 on github.
  • I am cerulean (https://keybase.io/cerulean) on keybase.
  • I have a public key ASCOlfFmFWdY6jXk3LpfaQVlEViKLDa6Phyd9EYioy8n5Qo

To claim this, I am signing this object:

@ddx32
ddx32 / bootstrap-ms-column-mixins.less
Last active August 29, 2015 14:07
Bootstrap's missing 480px columns mixins
/*
An extension of andyl's hack – https://gist.github.com/andyl/6360906
in a mixin version.
*/
@import 'bootstrap'; // if you haven't already
@screen-ms-min: 480px;
.make-ms-column(@columns; @gutter: @grid-gutter-width) {