اگه شما هم با فرمت yaml مشکل دارید، اینجا میتونین yamlی که نوشتین رو وارد کنین و بهتون میگه که معبر هست یا نه
https://jsonformatter.org/yaml-validator
https://jsonformatter.org/yaml-validator
jsonformatter.org
Best YAML Validator Online
Free YAML Validator is a web based validator and lint YAML.
استفاده از either به جای پرتاب کردن exception
https://www.thoughtworks.com/insights/blog/either-data-type-alternative-throwing-exceptions
https://www.thoughtworks.com/insights/blog/either-data-type-alternative-throwing-exceptions
Thoughtworks
The Either data type as an alternative to throwing exceptions
Exceptions are a mainstay of programming languages. They are commonly used to handle anomalous or exceptional conditions that require special processing, breaking out of the normal flow of the application. Some languages, such as C++ or Java, use them liberally.…
یه فایل میخوان چک کنن که هست یا نیست.
این همه آدم تیکه کد گذاشتن آخرم با هم موافق نیستن که کدوم تو همه حالات درست کار میکنه.
https://stackoverflow.com/questions/12518876/how-to-check-if-a-file-exists-in-go/22467409#22467409
این همه آدم تیکه کد گذاشتن آخرم با هم موافق نیستن که کدوم تو همه حالات درست کار میکنه.
https://stackoverflow.com/questions/12518876/how-to-check-if-a-file-exists-in-go/22467409#22467409
Stack Overflow
How to check if a file exists in Go?
Go's standard library does not have a function solely intended to check if a file exists or not (like Python's os.path.exists). What is the idiomatic way to do it?
https://malltina.com/product/mlt-7391359/Goal-Zero-Yeti-500X-Portable-Power-Station%2C-505Wh-Portable-Lithium-Battery-Emergency-Power-Station%2C-Outdoor-Solar-Generator%2C-120V-AC-Pure-Sine-Wave-Inverter%2C-12V-Car-Port%2C-6mm%2C-USB-C-PD%2C-USB-A-Port
اگه پولش رو دارید، میتونین با ۲۵ ملیون این ابزار رو تهیه کنید و زمان بی برقی، بدون برق نمونین.
اگه پولش رو دارید، میتونین با ۲۵ ملیون این ابزار رو تهیه کنید و زمان بی برقی، بدون برق نمونین.
Malltina
قیمت و خرید ایستگاه برق قابل حمل Goal Zero Yeti 500X ، نیروگاه اضطراری باتری لیتیوم قابل حمل 505Wh ، ژنراتور خورشیدی در فضای باز…
خرید اینترنتی ایستگاه برق قابل حمل Goal Zero Yeti 500X ، نیروگاه اضطراری باتری لیتیوم قابل حمل 505Wh ، ژنراتور خورشیدی در فضای باز ، اینورتر موج سینوسی خالص 120 ولت AC ، پورت اتومبیل 12 ولت ، 6 میلی متر ، USB C PD ، پورت USB A برند Goal Zero از محصولات Generators…
حالا اگه js بود برای even و odd هم کتابخونه داشت، تو go برای min, max نداریم تابع =))
https://stackoverflow.com/questions/34259800/is-there-a-built-in-min-function-for-a-slice-of-int-arguments-or-a-variable-numb
https://stackoverflow.com/questions/34259800/is-there-a-built-in-min-function-for-a-slice-of-int-arguments-or-a-variable-numb
Stack Overflow
Is there a built in min function for a slice of int arguments or a variable number of int arguments in golang?
Is there a built in function that returns the minimum of a slice of int arguments:
func MinIntSlice(v []int) (m int) {
if len(v) > 0 {
m = v[0]
}
for i := 1; i < len(v); i...
func MinIntSlice(v []int) (m int) {
if len(v) > 0 {
m = v[0]
}
for i := 1; i < len(v); i...
استاندارد gnu زمان کامپایل کردن C/cpp چه تفاوتی ایجاد میکنه؟
https://stackoverflow.com/questions/10613126/what-are-the-differences-between-std-c11-and-std-gnu11
https://stackoverflow.com/questions/10613126/what-are-the-differences-between-std-c11-and-std-gnu11
Stack Overflow
What are the differences between -std=c++11 and -std=gnu++11?
What are the differences between -std=c++11 and -std=gnu++11 as compilation parameter for gcc and clang? Same question with c99 and gnu99? I know about C++ and C standards, it's the differences in ...
گزینه fastmath در gcc چه میکند
https://stackoverflow.com/a/22135559/10999348
https://stackoverflow.com/a/22135559/10999348
Stack Overflow
What does gcc's ffast-math actually do?
I understand gcc's --ffast-math flag can greatly increase speed for float ops, and goes outside of IEEE standards, but I can't seem to find information on what is really happening when it's on. Can
جاج های انلاین چطوری مموری مصرف شده توسط برنامه رو بررسی میکنند؟
https://www.quora.com/Computer-Programming/What-is-the-simplest-and-most-accurate-way-to-measure-the-memory-used-by-a-program-in-a-programming-contest-environment/answer/Vivek-Prakash-2
https://www.quora.com/Computer-Programming/What-is-the-simplest-and-most-accurate-way-to-measure-the-memory-used-by-a-program-in-a-programming-contest-environment/answer/Vivek-Prakash-2
Quora
What is the simplest and most accurate way to measure the memory used by a program in a programming contest environment?
Answer: I assume you want to know how online judges determine 'Memory Limit Exceeded' for a user-supplied program.
First you may want to read the general architecture of online judges at
How do online judges identify time limit exceeded? I have to design…
First you may want to read the general architecture of online judges at
How do online judges identify time limit exceeded? I have to design…
کتابخانه psutil پایتون
psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization
https://psutil.readthedocs.io/en/latest/
psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization
https://psutil.readthedocs.io/en/latest/
یک جاج کننده کد ساده با پایتون و subprocess
https://gist.github.com/apaar97/de3ef501d5762ac8cb2f8a7343b6a29d
https://gist.github.com/apaar97/de3ef501d5762ac8cb2f8a7343b6a29d
Gist
A lightweight code checker tool in python for compiling and running Java, C & Cpp files. Handles compilation errors, runtime errors…
A lightweight code checker tool in python for compiling and running Java, C & Cpp files. Handles compilation errors, runtime errors, AC, WA and TLE - codechecker.py
چرا با ویندوز مشکل دارم:
https://stackoverflow.com/a/12231952/10999348
https://stackoverflow.com/a/12231952/10999348
Stack Overflow
Resource limits on Windows?
What are the Windows equivalents to the resource limit mechanisms exposed on Unix systems by Python's resource module, and POSIX setrlimit?
Specifically, I'm limiting processor time for a child pr...
Specifically, I'm limiting processor time for a child pr...
👎1
دستور git archive:
خروجی گرفتن از یک پروژه روی گیت
https://www.atlassian.com/git/tutorials/export-git-archive
خروجی گرفتن از یک پروژه روی گیت
https://www.atlassian.com/git/tutorials/export-git-archive
یک فایل سورس، حداکثر باید چند خط باشد؟
https://softwareengineering.stackexchange.com/questions/176999/at-what-point-range-is-a-code-file-too-big/177102
https://softwareengineering.stackexchange.com/questions/176999/at-what-point-range-is-a-code-file-too-big/177102
Software Engineering Stack Exchange
At what point/range is a code file too big?
I'm finding lots of 2-3k line files, and it doesn't really feel like they should be that big.
What is a good criteria to objectively call a source code file "too big"?, is there such thing as a m...
What is a good criteria to objectively call a source code file "too big"?, is there such thing as a m...
به جای print، اطلاعات دیباگ را با log چاپ کنید.
https://automatetheboringstuff.com/2e/chapter11/
https://automatetheboringstuff.com/2e/chapter11/
کامپایل شرطی در go
https://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool
مثال از یه برنامه platform dependent که از این قابلیت استفاده کرده:
https://github.com/skratchdot/open-golang
https://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool
مثال از یه برنامه platform dependent که از این قابلیت استفاده کرده:
https://github.com/skratchdot/open-golang
GitHub
GitHub - skratchdot/open-golang: Open a file, directory, or URI using the OS's default application for that object type. Optionally…
Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use. - skratchdot/open-golang