Web_programming
1.14K subscribers
354 photos
14 videos
125 files
1.22K links
Sharif web programming
If you have any questions, please feel free to ask(@yumcoder)
Download Telegram
اگر مطالعه کردید و مشکل داشتید میتوانید به من پیغام دهید 😀. لازم به ذکر است برای درک مقاله فوق باید دستورهای linux مانند:
epoll, pipe, eventfd,...
آشنا باشید. ولی حقیقا مقاله بسیار بسیار خوب، دقیق و کاملی است.
https://gyp.gsrc.io/
کاربرد برای کدهای که محیط توسعه مختلف را میخواهند پشتیبانی کنند (فرض کنید میخواهید پروژه در clion-VS-xcode,... توسعه داده شود.)
نمونه کاربرد پروژه کروم و تلگرام دیسکتاب
ریاضیات مورد نیاز برای درک پروتکل mtproto همان constructive type theory است در درس formal method توسط دکتر میریان تدریس میشود
دو لینک آخر نسخه ابزارهای آنها کمی قدیمی است و بیشتر هدف اشنایی با این مفهوم است
let create a C program named hello.c
#include <stdio.h> 

int main() {
printf("Hello World\n");
}

Now, copy the hello.c to hello_new.c
$ cp hello.c hello_new.c
and edit the hello_new.c as shown below:
#include <stdio.h>

int main(int argc, char *argv[]) {
printf("Hello World\n");
return 0;
}

Finally, create the patch file using diff command:
$ diff -u hello.c hello_new.c > hello.patch
.
It create a patch file named “hello.patch”.

--- hello.c     2018-10-03 09:09:06.762269317 +0330
+++ hello_new.c 2018-10-03 09:10:19.663639835 +0330
@@ -1,5 +1,6 @@
-#include <stdio.h>
+#include <stdio.h>

-int main() {
+int main(int argc, char *argv[]) {
printf("Hello World\n");
+return 0;
}


To apply Patch File using Patch Command
$ patch < hello.patch
patching file hello.c

And the hello.c
#include <stdio.h>

int main(int argc, char *argv[]) {
printf("Hello World\n");
return 0;
}