چرا در css کامنت تک خطی نداریم؟
۱- از اول نداشتیم، حالا خیلی سخته بخواد اضافه بشه.
۲- از اول نداشتیم چون در زمان تحلیل، میاد فاصله ها رو ایگنور میکنه بنابراین نمیتونه بگه «تا وقتی به n\ نرسیدی»
https://stackoverflow.com/questions/2479351/why-do-comments-work-in-stylesheets-but-comments-dont
۱- از اول نداشتیم، حالا خیلی سخته بخواد اضافه بشه.
۲- از اول نداشتیم چون در زمان تحلیل، میاد فاصله ها رو ایگنور میکنه بنابراین نمیتونه بگه «تا وقتی به n\ نرسیدی»
https://stackoverflow.com/questions/2479351/why-do-comments-work-in-stylesheets-but-comments-dont
Stack Overflow
Why do /**/ comments work in stylesheets, but // comments don't?
Is there a good reason for this? It is a lame question, but I just wondered if there was a reason why.
توضیح stateless بودن http
https://home.sandiego.edu/~liao/cs194/1998.client.server/lectures/maintain.state.html
https://home.sandiego.edu/~liao/cs194/1998.client.server/lectures/maintain.state.html
چرا فورترن میتونه از سی سریع تر باشه؟
چطوری سی رو به اون سرعت برسونیم؟
معرفی کلیدواژه restrict
https://stackoverflow.com/questions/146159/is-fortran-easier-to-optimize-than-c-for-heavy-calculations
چطوری سی رو به اون سرعت برسونیم؟
معرفی کلیدواژه restrict
https://stackoverflow.com/questions/146159/is-fortran-easier-to-optimize-than-c-for-heavy-calculations
Stack Overflow
Is Fortran easier to optimize than C for heavy calculations?
From time to time I read that Fortran is or can be faster then C for heavy calculations. Is that really true? I must admit that I hardly know Fortran, but the Fortran code I have seen so far did no...
Forwarded from Useful Links and Documents (Mohammad Amin Sharifi Minabi)
سلام دوستان, یک مطلب درباره نحوه اندازه گیری زمان اجرا و میزان مصرف رم توی پایتون و ژوپیتر نوت بوک نوشتم ( Ipython دقیق تر)
https://bigm.ir/calculate-python-execution-time-and-ram/
قدم اول بهینه سازی کد این هستش که بدونیم مشکل کجاست. در سری های بعدی درباره بهینه کد نوشتن پایتون مینویسم.
به زودی هم ویدیوش رو میسازم و توی کانال یوتوب قرار میدم.
#python
#jupyter
#Ipython
#ram #timing #cpu
https://bigm.ir/calculate-python-execution-time-and-ram/
قدم اول بهینه سازی کد این هستش که بدونیم مشکل کجاست. در سری های بعدی درباره بهینه کد نوشتن پایتون مینویسم.
به زودی هم ویدیوش رو میسازم و توی کانال یوتوب قرار میدم.
#python
#jupyter
#Ipython
#ram #timing #cpu
امین شریفی - Amin Sharifi
چطوری حافظه و زمان اجرا را در پایتون و ژوپیتر نوت بوک حساب کنیم؟
قرار هستش در این اموزش با روش های ساده تا پیشرفته محاسبه زمان اجرا و وضعیت مصرف حافظه در پایتون رو با هم بررسی کنم پس ما من همراه باشید. خیلی خلاصه بگم که توی ژوپیتر نوت بوک ابزار مورد علاقه من کلی ابزار هست که میتونیم از اونها استفاده کنیم و زمان اجرا…
میدونستید نمیشه virtualenv پایتون رو جا به جا کرد؟
https://stackoverflow.com/questions/32407365/can-i-move-a-virtualenv
https://stackoverflow.com/questions/32407365/can-i-move-a-virtualenv
Stack Overflow
Can I move a virtualenv?
If I create a virtualenv, and I move it to a different folder, will it still work?
$ virtualenv -p /usr/bin/python3 /home/me/Env/my-python-venv
$ source Env/my-python-venv/bin/activate
(my-python-v...
$ virtualenv -p /usr/bin/python3 /home/me/Env/my-python-venv
$ source Env/my-python-venv/bin/activate
(my-python-v...
https://stackoverflow.com/questions/47590444/slice-vs-map-to-be-used-in-parameter
چراییِ تفاوت map و slice در go
چراییِ تفاوت map و slice در go
Stack Overflow
slice vs map to be used in parameter
In golang, slice and map are both reference types. When you simply need to modify elements in slice/map, the modification to slice/map members will be "broadcasted" to all slices. E.g, given m1 := ...
مختصر و مفید در مورد مدیریت مموری
https://www.guru99.com/os-memory-management.html
https://www.guru99.com/os-memory-management.html
Guru99
Memory Management in OS: Contiguous, Swapping, Fragmentation
This tutorial covers memory management basics, memory allocation techniques, Swapping, Paging and Fragmentation, Static and dynamic linking, and more.
احتمالا قبلا هم گذاشتم ولی:
برای شروع ویم
https://www.youtube.com/watch?v=gojr3jZqFX0
برای کانفیگ کردن ویم
https://www.youtube.com/watch?v=vHB9FdsPbFs
اینا رو ببینید.
برای شروع ویم
https://www.youtube.com/watch?v=gojr3jZqFX0
برای کانفیگ کردن ویم
https://www.youtube.com/watch?v=vHB9FdsPbFs
اینا رو ببینید.
YouTube
نگاهی به vim
در این ویدیو به ویژگیهای کلی ویم نگاه میکنیم و با مفاهیم اولیهاش آشنا میشیم
https://github.com/MCSH/dot-files/blob/master/.config/nvim/init.vim
https://github.com/MCSH/dot-files/blob/master/.config/nvim/init.vim
چند تا کانفیگ خوب که دیدم هم اینجا میذارم:
https://github.com/1995parham/dotfiles/tree/master/nvim
https://github.com/MCSH/dot-files/blob/master/.config/nvim/init.vim
https://github.com/mo1ein/My-dotfiles/blob/master/.vimrc
https://github.com/hoomanist/dotfiles/blob/master/nvim/init.vim
https://github.com/1995parham/dotfiles/tree/master/nvim
https://github.com/MCSH/dot-files/blob/master/.config/nvim/init.vim
https://github.com/mo1ein/My-dotfiles/blob/master/.vimrc
https://github.com/hoomanist/dotfiles/blob/master/nvim/init.vim
GitHub
dotfiles/nvim at main · 1995parham/dotfiles
:rocket: @elahe-dastan / @1995parham Linux / OSx configurations files - dotfiles/nvim at main · 1995parham/dotfiles
از بالا اشاره کردن برای شروع ویم اینم خوبه:
https://www.freecodecamp.org/news/learn-linux-vim-basic-features-19134461ab85/
https://www.freecodecamp.org/news/learn-linux-vim-basic-features-19134461ab85/
freeCodeCamp.org
Why I love Vim: It’s the lesser-known features that make it so amazing
By Amit Kulkarni Since I started using Vim in 2016, I’ve discovered several lesser-known features that Vim offers out of the box without any plugins. Can you cover some basics before you start rambling about these new things? Oh sure! Before I copy p...
نظراتِ منفیِ لینوس توروالدز در مورد سی پلاس پلاس
https://harmful.cat-v.org/software/c++/linus
https://harmful.cat-v.org/software/c++/linus
کلا با سایتش حال کردم.
نسبت به همه چی، جمله ها و انتقادهای منفی رو جمعآوری کرده.
به نظرم قبل از شروع کردن به یادگیری/استفاده آدم خوبه بخونه.
https://harmful.cat-v.org/software/
نسبت به همه چی، جمله ها و انتقادهای منفی رو جمعآوری کرده.
به نظرم قبل از شروع کردن به یادگیری/استفاده آدم خوبه بخونه.
https://harmful.cat-v.org/software/
شی گرا ترین زبان دنیا erlang است!
https://blog.ryanlevick.com/posts/erlang-is-the-most-object-oriented-language/
https://blog.ryanlevick.com/posts/erlang-is-the-most-object-oriented-language/
Ryanlevick
Erlang is the Most Object Oriented Language - You Learn Something New Everyday 💭
Here's an idea: Erlang is the only true object oriented language in use today.
You might be thinking “WATTTT, that doesn't make any sense”. But bear with me. Let's examine this idea a bit and see where it takes us.
Functional Programming and Object Orientation…
You might be thinking “WATTTT, that doesn't make any sense”. But bear with me. Let's examine this idea a bit and see where it takes us.
Functional Programming and Object Orientation…