apk --force --no-cache add procps
apk --force add linux-headers
apk —-force add --update alpine-sdk
cd ~
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// timer function that loops through an array within a given interval | |
$.timer = function (list, callback, time/*, onFinish, index*/) { | |
var onFinish = arguments.length > 3 ? arguments[3] : void 0, | |
index = arguments.length > 4 ? arguments[4] : 0; | |
if (index < list.length) { | |
callback.call(this, index, list[index]); | |
list.__timed = setTimeout(function() { | |
$.timer(list, callback, time, onFinish, ++index); | |
}, time); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$('#example').dataTable({ | |
processing: true, | |
serverSide: true, | |
ajax: { | |
url: API_URL + '?action=search_data', | |
data: function (d) { | |
d.key = 'value'; | |
} | |
} |