-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated TrickyHttpClient for better hosts 'tricking'
+ readme updated + minor defect fixes
- Loading branch information
1 parent
79d14af
commit fd90824
Showing
9 changed files
with
156 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Genius.PriceChecker.Core | ||
{ | ||
public static class Utils | ||
{ | ||
private static Random _rnd = new(); | ||
|
||
public static bool RandomBool() | ||
=> _rnd.NextDouble() >= 0.5; | ||
|
||
public static int RandomInt(int from, int to) | ||
=> _rnd.Next(from, to); | ||
|
||
public static T TakeRandom<T>(this IList<T> list) | ||
{ | ||
if (list.Count == 0) | ||
return default (T); | ||
return list[_rnd.Next(0, list.Count - 1)]; | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# price-checker | ||
A simple price checker for the selected products to catch the cheapest deal | ||
|
||
### Main window: | ||
 | ||
|
||
### Product edit: | ||
 | ||
|
||
### Product with updated lowest price: | ||
 |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.