Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block agamemnus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
agamemnus / 1) Install
Created Dec 4, 2018 — forked from nghuuphuoc/1) Install
Install Redis on Centos 6
View 1) Install
// --- Compiling ---
$ wget
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh
$ rpm -Uvh
View gist:167c52c2a795e4db7c36
// Add a setTimeout and setInterval to HTMLElement. The setTimeout and setInterval remove themselves if the element is removed.
// Another possible implementation: global service.
HTMLElement.prototype.setTimeout = function (callback, calltime) {
var current_element = this
function is_attached (obj) {
while (true) {
obj = obj.parentNode
if (obj == document.documentElement) return true
if (obj == null) return false
You can’t perform that action at this time.