اگه توی زبانی که برنامه نویسی میکنید مجبورید سمیکالن بگذارید، به این فکر کنید که حتی توی اسمبلی هم سمی کالن اختیاریه.
اکسپشن رو خفه نکنید.
اگه میخواید اصلا catchش نکنید.
(توضیح: خفه کردن = بلوک catch خالی باشه.)
اگه میخواید اصلا catchش نکنید.
(توضیح: خفه کردن = بلوک catch خالی باشه.)
Forwarded from جالینوکس
دوستان، دورهٔ «آموزش گیت» مکتبخونه رو تا فردا ظهر میتونید با ۱۰۰ درصد تخفیف ثبت نام کنید (فقط محتوای آموزشی)
کد تخفیف:
لینک دوره:
https://maktabkhooneh.org/course/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-Git-mk796/
کد تخفیف:
gitcntلینک دوره:
https://maktabkhooneh.org/course/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-Git-mk796/
مکتبخونه
جامع ترین آموزش git | گیت (صفر تا صد) | مکتبخونه
در دورهی آموزش Git مفاهیم اساسی سیستمهای کنترل نسخه و دستورات لازم برای کار با آنها آموزش داده میشود. آموزش Git همراه با تمرین و پروژه توسط استاد وحید نائینی ارائه میشود.
Forwarded from Geeky Career (Mohammad Moallemi)
#linux #terminal #bash
How to get process PIDs?
The
https://linuxize.com/post/pgrep-command-in-linux/
How to get process PIDs?
pgrep <process_name>
e.g.pgrep pythonpgrep is a command-line utility that allows you to find the process IDs of a running program based on given criteria. It can be a full or partial process name, a user running the process, or other attributes.The
pgrep command is a part of the procps (or procps-ng) package, which is pre-installed on nearly all Linux distributions.https://linuxize.com/post/pgrep-command-in-linux/
عملگر ؟: در زبان های برنامه نویسی مختلف
https://en.wikipedia.org/wiki/%3F:
https://en.wikipedia.org/wiki/%3F:
نوشتههای ترمینالی
یه بارم که گفتم از ویندوز استفاده کنم:
This media is not supported in your browser
VIEW IN TELEGRAM
نوشتههای ترمینالی
😂 Sticker
متاسفانه به دلیل کمبود مطلب، به مطالب زرد رو آوردم.
تنسور های در pytorch
https://parastoofalakaflaki.medium.com/a-brief-introduction-to-tensors-694a6d790010
https://parastoofalakaflaki.medium.com/a-brief-introduction-to-tensors-694a6d790010
Medium
A brief Introduction to Tensors
In simple words, tensor is a data structure that stores a collection of numbers that are accessible individually by an index, and that can be indexed with multiple indices. In the context of deep…
نوشتههای ترمینالی
تنسور های در pytorch https://parastoofalakaflaki.medium.com/a-brief-introduction-to-tensors-694a6d790010
نوشته دوست خوبمونه. حتما بخونید و clap کنید.
اگه مثل من فردا امتحان دارید، میتونید پست های اینجا رو بخونید:
https://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered/184682
بهترین کامنتهایی که توی کد نوشتین.
برای خودم اینا جالب بود:
https://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered/184682
بهترین کامنتهایی که توی کد نوشتین.
برای خودم اینا جالب بود:
This seems to stop morons from messing my code...
// Autogenerated, do not edit. All changes will be undone.
// sometimes I believe compiler ignores all my comments
#define struct union
// is very helpful in memory constrained systems.
return 1; # returns 1
/* This is O(scary), but seems quick enough in practice. */
followed by four nested for-loops
try {
} finally {
// should never happen
}
long long ago; /* in a galaxy far far away */
// I am not sure if we need this, but too scared to delete.
/* Please work */
/* You are not meant to understand this */
// no comments for you
// it was hard to write
// so it should be hard to read
// I have to find a better job
// hack for ie browser (assuming that ie is a browser)
try {
}
catch (SQLException ex) {
// Basically, without saying too much, you're screwed. Royally and totally.
}
catch(Exception ex)
{
//If you thought you were screwed before, boy have I news for you!!!
}
long time; /* know C */
// I can't divide with zero, so I have to divide with something very similar
result = number / 0.00000000000001;
(متاسفانه این رو بارها و بارها گذاشتم من!)
/**
* If you don't understand this code, you should be flipping burgers instead.
*/
/* Ah ah ah! You'll never understand why this one works. */
catch (Ex as Exception)
{
// oh crap, we should do something.
}
public GetRandomNumber()
{
// Chosen by a fairly rolen dice
return 12;
}
// This is crap code but it's 3 a.m. and I need to get this working.
// For the sins I am about to commit, may James Gosling forgive me
# Limit length of buffer to try to send, because some OSes are too
# stupid to do so themselves (ahem windows)
return self.socket.send(buffer(data, 0, self.SEND_LIMIT))
Stack Overflow
What is the best comment in source code you have ever encountered?
آموزش (تقریبا گرافیکی) redirection در bash
https://wiki.bash-hackers.org/howto/redirection_tutorial
https://wiki.bash-hackers.org/howto/redirection_tutorial