From d649c0e6be449b061f583a2fa9959fdfba6db02f Mon Sep 17 00:00:00 2001 From: Devender95411 Date: Sat, 31 May 2025 09:22:31 +0530 Subject: [PATCH] Update and rename src/content/configuration/index.mdx to src/content/configur --- src/content/configur | 87 +++++++++++++++++++++++++++++ src/content/configuration/index.mdx | 78 -------------------------- 2 files changed, 87 insertions(+), 78 deletions(-) create mode 100644 src/content/configur delete mode 100644 src/content/configuration/index.mdx diff --git a/src/content/configur b/src/content/configur new file mode 100644 index 000000000000..f0c76b0e6050 --- /dev/null +++ b/src/content/configur @@ -0,0 +1,87 @@ +import requests +import time +from collections import Counter + +# === CONFIGURATION === +API_URL = "https://okwin.login.uk.com/api/game/wingo/latest" # Example, update as needed + +AUTH_HEADERS = { + 'User-Agent': 'Mozilla/5.0', + 'Cookie': 'sessionid=YOUR_SESSION_ID', + 'Authorization': 'Bearer YOUR_TOKEN' # Optional +} + +# === FUNCTIONS === + +def fetch_latest_result(): + try: + response = requests.get(API_URL, headers=AUTH_HEADERS) + if response.status_code == 200: + return response.json() + else: + print("Error:", response.status_code) + except Exception as e: + print("Exception:", e) + return None + + +def analyze_results(history): + big_small_seq = [res['result'] for res in history] + color_seq = [res['color'] for res in history] + number_seq = [res['number'] for res in history] + + print("\nšŸ“Š Analysis of Last Results:") + print("Big/Small Counts:", Counter(big_small_seq)) + print("Color Counts:", Counter(color_seq)) + print("Most Common Number:", Counter(number_seq).most_common(3)) + + # Detect Streaks + streak = 1 + prev = big_small_seq[0] + for val in big_small_seq[1:]: + if val == prev: + streak += 1 + else: + break + print(f"šŸ”„ Current '{prev}' streak: {streak} times") + + # Suggestion + if streak >= 2: + suggestion = 'Small' if prev == 'Big' else 'Big' + print("šŸ”® Suggested Bet (based on streak flip):", suggestion) + else: + print("šŸ”® Suggested Bet: No strong trend") + + +def run_monitor(): + print("šŸ” Fetching Wingo 1-min results...") + last_period = None + result_history = [] + + while True: + data = fetch_latest_result() + if data: + period = data.get("period") + number = data.get("number") + result = data.get("result") + color = data.get("color") + + if period != last_period: + last_period = period + result_history.insert(0, { + "period": period, + "number": number, + "result": result, + "color": color + }) + print(f"\nšŸ•’ Period: {period}") + print(f"šŸŽ² Number: {number} → {result}") + print(f"šŸŽØ Color: {color}") + analyze_results(result_history[:10]) # Analyze last 10 results + + time.sleep(10) # Wait before checking again + +# === MAIN === +if __name__ == "__main__": + run_monitor() + diff --git a/src/content/configuration/index.mdx b/src/content/configuration/index.mdx deleted file mode 100644 index 89b2b3ab0ebc..000000000000 --- a/src/content/configuration/index.mdx +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: Configuration -sort: 1 -contributors: - - sokra - - skipjack - - grgur - - bondz - - sricc - - terinjokes - - mattce - - kbariotis - - sterlingvix - - jeremenichelli - - dasarianudeep - - lukasgeiter - - EugeneHlushko - - bigdawggi - - anshumanv - - textbook - - coly010 - - chenxsan ---- - -Out of the box, webpack won't require you to use a configuration file. However, it will assume the entry point of your project is `src/index.js` and will output the result in `dist/main.js` minified and optimized for production. - -Usually, your projects will need to extend this functionality, for this you can create a `webpack.config.js` file in the root folder and webpack will automatically use it. - -All the available configuration options are specified below. - -T> New to webpack? Check out our guide to some of webpack's [core concepts](/concepts) to get started! - -## Use a different configuration file - -If for some reason you want to use a different configuration file depending on certain situations, you can change this via command line by using the `--config` flag. - -**package.json** - -```json -"scripts": { - "build": "webpack --config prod.config.js" -} -``` - -## Set up a new webpack project - -W> webpack applies configuration defaults after [plugins defaults](/contribute/writing-a-plugin/#configuration-defaults) are applied. - -Webpack has a huge set of options which might be overwhelming to you, please take advantage of `webpack-cli` starting from version v6.0.0 new tool [create-new-webpack-app](https://github.com/webpack/webpack-cli/) which could rapidly generate webpack application with specific configuration files for your project requirements, it will ask you a couple of questions before creating a configuration file. - -```bash -npx create-new-webpack-app [command] [options] -``` - -npx might prompt you to install `create-new-webpack-app` if it is not yet installed in the project or globally. You might also get additional packages installed to your project depending on the choices you've made during the new webpack application generation. - -```bash -$ npx create-new-webpack-app init - -Need to install the following packages: -create-new-webpack-app@1.1.1 -Ok to proceed? (y) - -? Which of the following JS solutions do you want to use? Typescript -? Do you want to use webpack-dev-server? Yes -? Do you want to simplify the creation of HTML files for your bundle? Yes -? Do you want to add PWA support? No -? Which of the following CSS solutions do you want to use? CSS only -? Will you be using PostCSS in your project? Yes -? Do you want to extract CSS for every file? Only for Production -? Which package manager do you want to use? npm -[create-webpack] ā„¹ļø Initializing a new Webpack project -... -... -... -[create-webpack] āœ… Project dependencies installed successfully! -[create-webpack] āœ… Project has been initialised with webpack! -```