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
class Gossip: | |
def __init__(self, message): | |
if not isinstance(message, str): | |
raise TypeError("Gossip message must be a string.") | |
self.message = message | |
class BusRoute: | |
def __init__(self, stops: list[int]): | |
if not isinstance(stops, list) or not all(isinstance(stop, int) for stop in stops): | |
raise ValueError("Stops must be a list of integers.") |
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 unittest | |
class MarsRover(): | |
def __init__(self, facing, x, y, planet_map) -> None: | |
self.facing: str = facing | |
self.x: int = x | |
self.y: int = y | |
self.planet_map: Planet = planet_map | |
self.compass: list[str] = ["N", "E", "S", "W"] | |
self.obstacle_detected: bool = False |
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
#EXTM3U | |
#EXTINF:-1 tvg-id="ADN40.mx" tvg-logo="https://i.imgur.com/Og17U9N.png" group-title="News",ADN 40 | |
https://mdstrm.com/live-stream-playlist/60b578b060947317de7b57ac.m3u8 | |
#EXTINF:-1 tvg-id="AlcanceTV.mx" tvg-logo="https://i.imgur.com/5nYjRlb.png" group-title="Religious",Alcance TV | |
https://5bf8041cb3fed.streamlock.net/AlcanceTV/AlcanceTV/playlist.m3u8 | |
#EXTINF:-1 tvg-id="AMXNoticias.mx" tvg-logo="https://i.imgur.com/snIU1UA.jpg" group-title="News",AMX Noticias | |
https://5e50264bd6766.streamlock.net/mexiquense2/videomexiquense2/playlist.m3u8 | |
#EXTINF:-1 tvg-id="AntenaTV.mx" tvg-logo="https://i.imgur.com/1sAgSME.png" group-title="General",Antena TV | |
https://5ca9af4645e15.streamlock.net/grd/videogrd/playlist.m3u8 | |
#EXTINF:-1 tvg-id="AztecaUno.mx" tvg-logo="https://i.imgur.com/rRxgBtI.png" group-title="General",Azteca Uno |
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
$menu = 'Administrator PowerShell' | |
$command = "$PSHOME\powershell.exe -NoExit -Command ""Set-Location '%V'""" | |
'directory', 'directory\background', 'drive' | ForEach-Object { New-Item -Path "Registry::HKEY_CLASSES_ROOT\$_\shell" -Name runas\command -Force | Set-ItemProperty -Name '(default)' -Value $command -PassThru | Set-ItemProperty -Path {$_.PSParentPath} -Name '(default)' -Value $menu -PassThru | Set-ItemProperty -Name HasLUAShield -Value '' } |
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 handleError(err){ | |
console.log('Request falied'+ err) | |
} | |
//Promise | |
function get(url){ | |
return new Promise((resolve, reject) => { | |
var xhrObject = new XMLHttpRequest(); | |
xhrObject.onreadystatechange = function() { |