Skip to content

Instantly share code, notes, and snippets.

View serivires's full-sized avatar
🏠
Working from home

serivires serivires

🏠
Working from home
View GitHub Profile
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";
}
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;
#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 December 16, 2015 17:19
Hello Gist!
#include <stdio.h>
int main(void) {
printf("Hello Gist!\n");
return 0;
}