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
function Add-Copy { | |
param ( | |
[Parameter( | |
Mandatory = $true, | |
Position = 0, | |
HelpMessage = "The path of the file to clone." | |
)] | |
[ValidateNotNullOrWhiteSpace()] | |
[string]$OriginalFilePath, |
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
import http.client | |
import urllib.parse | |
class Response: | |
def __init__(self, status: int, reason: str, content: bytes): | |
self.status = status | |
self.reason = reason | |
self.content = content |
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
using System; | |
using System.Linq; | |
using System.Text; | |
public static class Program | |
{ | |
public static void Main() | |
{ | |
var listOfProducts = new Product[] | |
{ |
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
import asyncio | |
from enum import Enum | |
HOST = "127.0.0.1" | |
PORT = 62775 | |
class Commands(Enum): | |
UPDATE = 0 | |
LOGOUT = 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
using System; | |
using System.Collections.Generic; | |
public static class Program | |
{ | |
public static void Main() | |
{ | |
string[] options = [ | |
"option 0", | |
"option 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
import requests | |
from bs4 import BeautifulSoup, Tag | |
URL = "https://dle.rae.es/" | |
HEADERS = {"User-Agent": "Mozilla/5.0"} | |
def get_wotd() -> str: | |
response = requests.get(URL, headers=HEADERS) | |
soup = BeautifulSoup(response.text, "html.parser") |
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
param ( | |
[string]$TargetPath, | |
[string]$ShortcutLocation | |
) | |
$shell = New-Object -ComObject WScript.Shell | |
$shortcut = $shell.CreateShortcut($ShortcutLocation) | |
$shortcut.TargetPath = $TargetPath | |
$shortcut.Save() |