Skip to content

Instantly share code, notes, and snippets.

View danbee's full-sized avatar

Daniel Barber danbee

View GitHub Profile
// Add a function to jQuery to randomise selectors
$.fn.randomize = function(selector){
(selector ? this.find(selector) : this).parent().each(function(){
$(this).children(selector).sort(function(){
return Math.random() - 0.5;
}).detach().appendTo(this);
});
return this;
};
@danbee
danbee / elasticsearch.repo
Created September 23, 2014 15:30
Yum repo file for Elasticsearch 1.3.x
[elasticsearch-1.3]
name=Elasticsearch repository for 1.3.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.3/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1

Keybase proof

I hereby claim:

  • I am danbee on github.
  • I am danbarber (https://keybase.io/danbarber) on keybase.
  • I have a public key whose fingerprint is F3DF 3736 1C4A E11B 15B3 6425 1753 B269 F69F 2B48

To claim this, I am signing this object: