Skip to content

Instantly share code, notes, and snippets.

var debounce = (func, wait, immediate) => {
let timeout;
return () => {
let context = this,
args = arguments;
let later = () => {
timeout = null;
if (!immediate) func.apply(context, args);
}
import glob
import os
data = {}
cnt = 1
files = glob.glob("*.svg")
for f in files:
d = open(f, 'r')
content = d.readlines()
svg = []
@izifortune
izifortune / 0_reuse_code.js
Created January 24, 2014 16:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@izifortune
izifortune / parallax effect
Created January 14, 2014 13:15
Simple parallax effect for background image
.parallax-image {
background: url() repeat center center fixed;
background-clip: padding-box;
}
@izifortune
izifortune / tabnav.js
Created July 22, 2013 20:17
Tab navigation for swiper
this.swiper = new Swiper('.swiper-container',{
centeredSlides: true,
slidesPerView: 'auto',
onSlideClick: function (swiper) {
swiper.swipeTo(swiper.clickedSlide.index());
},
onSlideChangeEnd: function(swiper) {
//Get active slide and work on the callback
var t = swiper.activeSlide();
}