Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

serivires serivires

💭
I may be slow to respond.
Block or report user

Report or block serivires

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
View gist:7929113
function msgposit(x, y) {
var element = document.getElementById("message");
var scrollLeft = (document.documentElement && document.documentElement.scrollLeft) || document.body.scrollLeft;
var scrollTop = (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop;
element.style.left = ((event.x - x) + scrollLeft) + "px";
element.style.top = ((event.y - y) + scrollTop) + "px";
}
View gist:7928983
function ZB_layerAction(name, status) {
var obj = document.getElementById(name);
var _tmpx, _tmpy, marginx, marginy;
_tmpx = event.clientX + parseInt(obj.offsetWidth);
_tmpy = event.clientY + parseInt(obj.offsetHeight);
_marginx = document.body.clientWidth - _tmpx;
_marginy = document.body.clientHeight - _tmpy;
var scrollLeft = (document.documentElement && document.documentElement.scrollLeft) || document.body.scrollLeft;
View va_list.c
#include <stdarg.h>
int add(int, ...);
int main(void) {
printf("%d \n", add(3, 100, 200, 300));
system("pause");
return 0;
}
@serivires
serivires / hello.c
Last active Dec 16, 2015
Hello Gist!
View hello.c
#include <stdio.h>
int main(void) {
printf("Hello Gist!\n");
return 0;
}
You can’t perform that action at this time.