Skip to main content

Posts

Showing posts from January, 2019

Folk and signals - C

I maked sample process in c it plays with folk function to make it pause and resume while clicking ctrl+c If you have any questions please comment. Code: #include <stdio.h> #include <unistd.h> #include <signal.h> void reverse_handler(int sig); _Bool isPause=0; _Bool isRunning=1; int main() { int ppid; int counter=0; //make parent respond for ctrl+c (pause,resume). signal(SIGINT,reverse_handler); while(isRunning){ while(isPause==0) { /*code exec while process is resuming */ printf("\nc:%d",counter++); fflush(stdout); sleep(1); } //close parent after child is alive. if((ppid=fork())==0){ exit(0); } //make child respond for ctrl+c (pause,resume). signal(SIGINT,reverse_handler); //keep child alive and listening. while(isPause==1){ /*code exec while process is pausing */ sleep(1); } } return 0; } //if process is pause made it resume and vice versa....

Wifi Zoom - Android

With this application you can get password it's will taking time but it's doesn't need root your phone :) GitHub : here SlideMe: uploading... Thanks..

Hercules in python

For source or game please visit:   GitHub  If you have any questions please comment.

Analog Clock in Python

After what i learned from previous project and it was how i can rotate points (mathematics of rotation) then i wanted to make project to applied what i learned so i made this project analog watch from scratch 😃 GitHub

Bunny Game

Now we are with another game but i quoted from other developer code his name Julian Meyer but i indeed learned new things of his code like how i can rotating things and moving it smoothly . I Loved python.... :D GitHub