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
    
  
  
    
  | import requests | |
| from bs4 import BeautifulSoup | |
| from flask import Flask, jsonify | |
| app = Flask(__name__) | |
| @app.route('/mlbb', methods=['GET']) | |
| def get_upcoming_skins(): | |
| url = "https://mobile-legends.fandom.com/wiki/Upcoming_content" | |
| headers = { | 
  
    
      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
    
  
  
    
  | import requests | |
| from bs4 import BeautifulSoup | |
| cookies = { | |
| 'wordpress_test_cookie': 'WP+Cookie+check', | |
| 'wp-settings-1': 'edit_element_vcUIPanelWidth%3D1021%26ampampampampedit_element_vcUIPanelLeft%3D14px%26ampampampampedit_element_vcUIPanelTop%3D59px%26ampampampampeditor%3Dtinymce%26ampampampamplibraryContent%3Dbrowse%26ampampampampimgsize%3Dfull%26ampamplibraryContent%3Dbrowse%26ampampmfold%3Do%26ampampedit_element_vcUIPanelLeft%3D67px%26ampampedit_element_vcUIPanelTop%3D136px%26ampampposts_list_mode%3Dlist%26uploader%3D1%26editor%3Dtinymce%26edit_element_vcUIPanelLeft%3D230px%26edit_element_vcUIPanelTop%3D137px%26libraryContent%3Dbrowse%26template_window_vcUIPanelWidth%3D1212%26template_window_vcUIPanelLeft%3D142px%26template_window_vcUIPanelTop%3D74px%26mfold%3Do', | |
| 'wp-settings-time-1': '1719133983', | |
| 'PHPSESSID': 'cc28vdiqhvlek3jv49hib7smd2', | |
| 'sc_is_visitor_unique': 'rx12856607.1728455295.7B514FD2EE304FEE97F9BC36B4D3A245.2.2.2.2.2.2.2.2.1', | |
| 'vCentminmod': '8735cc5bae5801c849211396cc | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| REPO_DIR="$(pwd)" | |
| LOG_DIR="$REPO_DIR/logs" | |
| LOG_FILE="$LOG_DIR/log.md" | |
| if [ ! -d "$LOG_DIR" ]; then | |
| mkdir -p "$LOG_DIR" | |
| echo "Logs directory created." | |
| else | 
  
    
      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
    
  
  
    
  | import requests | |
| from bs4 import BeautifulSoup | |
| import time | |
| headers = { | |
| 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8', | |
| 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36', | |
| } | |
| def fetch_page(url): | 
  
    
      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
    
  
  
    
  | from flask import Flask, request, jsonify | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import re | |
| from urllib.parse import urlparse | |
| class InstagramScraperAPI: | |
| URL_REGEX = re.compile( | |
| r'^(?:http|ftp)s?://' # http:// or https:// | |
| r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}|[A-Z0-9-]{2,})|' # domain... | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env sh | |
| # LATEST VERSION OF THIS SCRIPT: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4 | |
| # FORKED FROM: https://gist.github.com/ddwang/0046da801bcb29d241869d37ad719394 | |
| # 1) No longer has a hard-coded COMMIT | |
| # 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking | |
| # HOW TO INSTALL: | |
| # 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings | |
| # 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable | 
  
    
      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
    
  
  
    
  | from flask import Flask, request, jsonify | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from urllib.parse import urlparse, parse_qs | |
| import re | |
| app = Flask(__name__) | |
| # Regular expression to validate URLs | |
| URL_REGEX = re.compile( | 
  
    
      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
    
  
  
    
  | import matplotlib.pyplot as plt | |
| import networkx as nx | |
| def draw_fsa(G, title): | |
| pos = nx.spring_layout(G) | |
| labels = nx.get_edge_attributes(G, 'label') | |
| plt.figure(figsize=(12, 6)) | |
| nx.draw(G, pos, with_labels=True, node_size=2000, node_color='skyblue', font_size=15, font_weight='bold') | |
| nx.draw_networkx_edge_labels(G, pos, edge_labels=labels, font_size=12) | 
  
    
      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
    
  
  
    
  | og:Type Lists Of Objects | |
| - apps.saves | |
| An action representing someone saving an app to try later. | |
| - article | |
| This object represents an article on a website. It is the preferred type for blog posts and news stories. | |
| - book | |
| This object type represents a book or publication. This is an appropriate type for ebooks, as well as traditional paperback or hardback books. Do not use this type to represent magazines | 
  
    
      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
    
  
  
    
  | import pygame | |
| import random | |
| # Initialize Pygame | |
| pygame.init() | |
| # Set up the screen | |
| screen_width = 800 | |
| screen_height = 600 | |
| screen = pygame.display.set_mode((screen_width, screen_height)) |