Note: I recommend reading this gist in order because
Examples 1-6build on each other.
- Example 1: Getting Console Input With
Console.ReadLine
How to get console input.- Example 2: Parsing The Console Input From
StringToInt32
How to convert the console input into a numeric value.- Example 3: Validating Console Input With
Int32.TryParse
How to validate numeric input to prevent bugs in your code.- [Example 4: Looping Until User Provides Valid Input](https://gist.github.com/ZacharyPatten/798ed612
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SQL Server 2022 Product Key | |
| --------------------------- | |
| Enterprise: J4V48-P8MM4–9N3J9-HD97X-DYMRM | |
| Enterprise Core: 2Q48Q-PB48J-DRCVN-GB844-X2H4Q | |
| Standard: FG86G-CHH2T-CB7NJ-XT7D2-V8V4X | |
| Web: 2R97W-F4XNT-T6MYV-3TKB7–6X3JM | |
| Developer: 22222–00000–00000–00000–00000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Product Year Version Product Keys | |
| Visual Studio 2022 2021 17.x Professional: | |
| TD244-P4NB7-YQ6XK-Y8MMM-YWV2J | |
| Enterprise: | |
| VHF9H-NXBBB-638P6-6JHCY-88JWH | |
| Visual Studio 2019 2019 16.x Professional: | |
| NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y | |
| Enterprise: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RAR registration data | |
| WinRAR | |
| Unlimited Company License | |
| UID=4b914fb772c8376bf571 | |
| 6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d | |
| cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717 | |
| 7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565 | |
| b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd | |
| 982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190 | |
| 6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9 |
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Remove variouse template parts in WooCommerce | |
| */ | |
| add_filter( 'wc_get_template', function( $located, $template_name, $args, $template_path, $default_path ) { | |
| $remove = [ | |
| 'sale-flash.php', | |
| 'meta.php', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( | |
| 'hivepress/v1/forms/payout_request', | |
| function( $form ) { | |
| $form['fields']['details']['description'] = 'custom text here'; | |
| return $form; | |
| }, | |
| 1000 | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( | |
| 'hivepress/v1/forms/order_deliver', | |
| function( $form ) { | |
| $form['fields']['note']['description'] = 'custom text here'; | |
| return $form; | |
| }, | |
| 1000 | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Adjust myCRED Point Rewards | |
| * Will move the points payout from when an order is "paid" to when | |
| * an order is "completed". | |
| * @version 1.0 | |
| */ | |
| add_action( 'after_setup_theme', 'mycred_pro_adjust_woo_rewards', 110 ); | |
| function mycred_pro_adjust_woo_rewards() { | |
| remove_action( 'woocommerce_payment_complete', 'mycred_woo_payout_rewards' ); |
NewerOlder