Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am pawel-piskorz on github.
  • I am pawelpiskorz (https://keybase.io/pawelpiskorz) on keybase.
  • I have a public key ASChl6l2GBAL2DysQ-K2AB-NGz0TclNgPweKJjM_iCI6WAo

To claim this, I am signing this object:

@pawel-piskorz
pawel-piskorz / selectize.click2remove.js
Last active August 29, 2015 14:13
Selectize.click2remove
/*
* Selectize plugin that allows user to remove
* selected option by clicking on it in the dropdown
*
* author: pawel@arabel.la
* ver: 0.2
*
* changelog:
* 0.2
* - clearing cache on item_remove event, not only when element in dropdown clicked
@pawel-piskorz
pawel-piskorz / custom_reveal.js
Last active August 29, 2015 13:57
Foundation 5 custom reveal handler, pulling only part of the page into modal
(function(){
var getPartialFor = curry(function(partialSelector, content){
var $content = $(content);
var $partial = $content.find(partialSelector);
return $partial;
});
var replaceContentFor = curry(function(parent, content){
$(parent).html(content);
// Sticky Plugin v1.0.1 for jQuery
// =============
// Author: Anthony Garand
// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)
// Improvements by Leonardo C. Daronco (daronco)
// Improvements by Paweł Piskorz (PablO)
// Created: 2/14/2011
// Date: 2/12/2012
// Website: http://labs.anthonygarand.com/sticky
// Description: Makes an element on the page stick on the screen as you scroll