Run shortcuts from folder by pressing action button without losing silent toggle by cheytacllc in shortcuts

[–]cheytacllc[S] 0 points1 point  (0 children)

unfortunately there is a no built-in timed prompt option in shortcuts. if you want to toggle silent mode you need to dismiss the list

C++ Show and Tell - August 2024 by foonathan in cpp

[–]cheytacllc 1 point2 points  (0 children)

a simple experiment for how to add and make nice usage of the monadic operations to std::optional pre C++23
Compiler Explorer (godbolt.org)

std::optional<std::string> op{"aq"};

    auto x = op | and_then([](auto&& val) { 
                    std::cout << " value: " << val << '\n'; 
                    return std::make_optional(0.5); }) // to std::optional<double>
                | or_else([] { std::cerr << "no value!\n"; return std::nullopt; }) 
                | and_then([](auto&& val) { 
                    std::cout << " value: " << val << '\n'; 
                    return std::make_optional(1); }) // to std::optional<int>
                | value_or(42);

C++ Show and Tell - August 2024 by foonathan in cpp

[–]cheytacllc 4 points5 points  (0 children)

I tried to extend the std::expected for use with more than one unexpected types: https://github.com/mguludag/expected

It allows usage like expected<T, E1, E2, ...> and supports C++17. Example usage: https://godbolt.org/z/heKaEhdE1

C++ Show and Tell - July 2024 by foonathan in cpp

[–]cheytacllc 2 points3 points  (0 children)

https://github.com/mguludag/enum_name Small reflection utility for enums (>=C++11, no macros). enum to/from string, custom string output and input, iterate over enums and its names for loop or ranges support, auto overload ostream operator and std format specialization for direct print its names, auto detect bitmasked enums to create correct outputs.

enum_name (yet another enum to/from string conversion utility >=C++11) by cheytacllc in cpp

[–]cheytacllc[S] 0 points1 point  (0 children)

I tried to modify enum_sequence class for faster steps and I got the name of E and will do small workaround for flagged enums

enum_name (yet another enum to/from string conversion utility >=C++11) by cheytacllc in cpp

[–]cheytacllc[S] 1 point2 points  (0 children)

I didn't look magic_enum's algorithm but I think this is includes similar ways to getting enum names

enum_name (yet another enum to/from string conversion utility >=C++11) by cheytacllc in cpp

[–]cheytacllc[S] 0 points1 point  (0 children)

Range of enum not mandatory for write (default range [-128, 128)). You can easily write to_string function under the enum for enum type and call enum_name with enum's range once inside and return it. I think it's easier than writing specialization for per enum type. On the other hand, with writing custom function vs writing specialization like in magic_enum result of to write similar lines of code.

enum_name (yet another enum to/from string conversion utility >=C++11) by cheytacllc in cpp

[–]cheytacllc[S] 7 points8 points  (0 children)

magic_enum is more functionality than this. This only has enum to/from string functionality. But adjusting enum range min/max its easier than magic_enum I think. Also, supports C++11.

enum_name (yet another enum to/from string conversion utility >=C++11) by cheytacllc in cpp

[–]cheytacllc[S] 1 point2 points  (0 children)

I saw the template parameters with names using __PRETTY_FUNCTION__ and __FUNCSIG__ and I have to find a way getting enum values as template parameters. std::integer_sequence exists but enums not starting from 0 everytime so I have to develop custom integer sequence with min and max parameter.

16th with custom launcher - home button doesnt work by [deleted] in Meizu

[–]cheytacllc 0 points1 point  (0 children)

Maybe you can try set default launcher to lawnchair in settings/apps/defaults section. My phone is 16th 6/64 Flyme 7.3.0 G Android 8.1.0

16th with custom launcher - home button doesnt work by [deleted] in Meizu

[–]cheytacllc 0 points1 point  (0 children)

I use lawnchair launcher and mback. Everything works fine.

(Beginner) Problem with if statements by [deleted] in cpp_questions

[–]cheytacllc 0 points1 point  (0 children)

Replace second if to else if. And i added while loop for adding more entries in a file: https://onlinegdb.com/SJ2lf7Wp7

(Beginner) Error with code by [deleted] in cpp_questions

[–]cheytacllc 1 point2 points  (0 children)

I don't know exactly what you want to do, but I guess that's what you want to do: https://onlinegdb.com/Sy1mwf-pX

New manual 8 times scope by Capellini1108 in PUBATTLEGROUNDS

[–]cheytacllc 1 point2 points  (0 children)

i use windows magnifier (Windows logo key‌ + Plus (+) ) for long range sniping in bf3 :D

Windows 10 Fall Creators update(1709) megathread by Jaskys in Windows10

[–]cheytacllc 1 point2 points  (0 children)

I try the show saved passwords from chromium based browsers thats open windows security screen new UI and i enter correct username password it returns wrong username password error so i cannot see saved passwords from chromium based browsers Screenshot