اینم لینک rosetta code:
البته که راه انداختن گرافیک برای زبان های مختلف به سادگی نصب turtle پایتون نیست. =)
https://rosettacode.org/wiki/Koch_curve
البته که راه انداختن گرافیک برای زبان های مختلف به سادگی نصب turtle پایتون نیست. =)
https://rosettacode.org/wiki/Koch_curve
ابزار radare2 یه جعبه ابزار کامل کار با باینریه.
حالا یه UI بسیار زیبا با اسم cutter براش نوشتن که کلی کار رو ساده میکنه.
اگه با زبانهای کامپایلری کار میکنید، حتما ببینیدش.
https://github.com/radareorg/cutter
حالا یه UI بسیار زیبا با اسم cutter براش نوشتن که کلی کار رو ساده میکنه.
اگه با زبانهای کامپایلری کار میکنید، حتما ببینیدش.
https://github.com/radareorg/cutter
چگونه یک memory allocator بنویسیم:
https://arjunsreedharan.org/post/148675821737/write-a-simple-memory-allocator
https://arjunsreedharan.org/post/148675821737/write-a-simple-memory-allocator
Tumblr
Memory Allocators 101 - Write a simple memory allocator
Code related to this article: github.com/arjun024/memalloc
This article is about writing a simple memory allocator in C.
We will implement malloc(), calloc(), realloc() and free().
This is a beginner...
This article is about writing a simple memory allocator in C.
We will implement malloc(), calloc(), realloc() and free().
This is a beginner...
Forwarded from جالینوکس
YouTube
ساختار ماژولها در پایتون: چند تا نکته دربارهٔ ایمپورت و نوشتن لایبرریها
درباره rvalue و lvalue در سی و سیپلاسپلاس
https://www.internalpointers.com/post/understanding-meaning-lvalues-and-rvalues-c
https://www.internalpointers.com/post/understanding-meaning-lvalues-and-rvalues-c
Internal Pointers
Understanding the meaning of lvalues and rvalues in C++
A lightweight introduction to a couple of basic C++ features that act as a foundation for bigger structures.
نوشتههای ترمینالی
تفاوت expression و statement (احتمالا نادقیق) هر دستوری توی زبانهای برنامهنویسی statement هست. هر چیزی مثل a=2 یا print یا return اما هر چیزی که قابل محاسبه به یک value باشه میشه expression. مثلا if (true){ int a = 3; } // statement int a = ( 1…
آیا همه function call ها expression هستند؟
حتی اونها که تایپ برگشتی void دارند؟
بله همشون.
فقط اونها که تایپ برگشت void دارن رو نمیشه یه کارهایی باهاشون کرد مثلا assign کرد.
https://stackoverflow.com/a/56817959
حتی اونها که تایپ برگشتی void دارند؟
بله همشون.
فقط اونها که تایپ برگشت void دارن رو نمیشه یه کارهایی باهاشون کرد مثلا assign کرد.
https://stackoverflow.com/a/56817959
Stack Overflow
Void function call as expressions
It's clear from the C standard that general function calls are expressions from the definition:
An expression is a sequence of operators and operands that specifies computation of a value, or that
An expression is a sequence of operators and operands that specifies computation of a value, or that
نوشتههای ترمینالی
آیا همه function call ها expression هستند؟ حتی اونها که تایپ برگشتی void دارند؟ بله همشون. فقط اونها که تایپ برگشت void دارن رو نمیشه یه کارهایی باهاشون کرد مثلا assign کرد. https://stackoverflow.com/a/56817959
در نهایت میرسیم به این که چرا نباید void برگردونن توابع و باید واقعا یه value مثل unit (در اسکالا) برگردونن که یه مقدار ولیده.
نه یه تایپ که هیچ مقداری نداره.
نه یه تایپ که هیچ مقداری نداره.
Dynamic voltage and frequency scaling (DVFS)
https://whatis.techtarget.com/definition/dynamic-voltage-and-frequency-scaling-DVFS
https://whatis.techtarget.com/definition/dynamic-voltage-and-frequency-scaling-DVFS
WhatIs.com
What is dynamic voltage and frequency scaling (DVFS) ? - Definition...
What is dynamic voltage and frequency scaling (DVFS)? This definition explains what DVFS is and how it's used to optimize power usage and performance in a variety of products.
عبارتهای لامبدا همه جا هستند. اینبار اکسل
https://faceit.ir/articles/lambda-in-excel/
https://faceit.ir/articles/lambda-in-excel/
فیسیت - چهره و اخبار فناوری
مایکروسافت قابلیت LAMBDA را برای اکسل معرفی کرد؛ انقلابی در فرمول نویسی
امروز شاهد معرفی قابلیت LAMBDA در اکسل توسط مایکروسافت بودیم که با فراهم کردن امکان ایجاد فرمولها به صورت تابع در خود اکسل، فرمول نویسی در این برنامه را متحول خواهد کرد.
نوشتههای ترمینالی
توی مانجارو گنوم، بعد از اینکه موقع آپدیت ctrl c زدم، سیستم رو خاموش کردم. توی بوت بعدی این ارور اومد.
برای حل:
رفتم توی tty (با ctrl alt f5) و بعد با دستور
sudo pacman -Syyu
گذاشتم کامل اپدیت ها دانلود و نصب شد بعد ریستارت کردم و اوکی شده بود همه چی.
رفتم توی tty (با ctrl alt f5) و بعد با دستور
sudo pacman -Syyu
گذاشتم کامل اپدیت ها دانلود و نصب شد بعد ریستارت کردم و اوکی شده بود همه چی.
بالاخره خروجی malloc رو کست کنیم یا نه؟
https://stackoverflow.com/questions/605845/do-i-cast-the-result-of-malloc
https://stackoverflow.com/questions/605845/do-i-cast-the-result-of-malloc
Stack Overflow
Should I cast the result of malloc?
In this question, someone suggested in a comment that I should not cast the result of malloc. i.e., I should do this:
int *sieve = malloc(sizeof(*sieve) * length);
rather than:
int *sieve = (int *)
int *sieve = malloc(sizeof(*sieve) * length);
rather than:
int *sieve = (int *)
Forwarded from مشقِ نوشتن (AliReza Fereydouni)
اگه فقط یک درصد فکر کردین که زبان C (یا C++) رو بلدین میتونین این تست رو بدین تا روشنتون کنه! 😁
https://wordsandbuttons.online/so_you_think_you_know_c.html
https://wordsandbuttons.online/so_you_think_you_know_c.html
wordsandbuttons.online
So you think you know C?
It's a C test. If you think you know C, take this test. It only has 5 questions.
و مشخص کردن typeها در jsdoc
https://google.github.io/styleguide/javascriptguide.xml#JsTypes
https://google.github.io/styleguide/javascriptguide.xml#JsTypes