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 watchdog.observers import Observer | |
| from watchdog.events import FileSystemEventHandler | |
| import time | |
| class MyHandler(FileSystemEventHandler): | |
| def on_modified(self, event): | |
| print(f"Se ha modificado: {event.src_path}") | |
| def on_created(self, event): | |
| print(f"Se ha creado: {event.src_path}") | |
| def on_deleted(self, event): |
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
| using System; | |
| public class Vector2D : IEquatable<Vector2D> | |
| { | |
| // Campos públicos para acceso directo (como en Unity) | |
| public float x; | |
| public float y; | |
| // Constructor principal | |
| public Vector2D(float x, float y) |
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
| package classes; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Cursor; | |
| import javafx.scene.Scene; | |
| import javafx.scene.input.MouseEvent; | |
| import javafx.stage.Screen; | |
| import javafx.stage.Stage; | |
| import java.util.HashMap; |
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
| // Left shift operator for Base64Decode (Inno Setup does not support << ) | |
| function BitwiseLeftShift (input: LongInt; shiftFactor: Integer): LongInt; | |
| var | |
| exp: LongInt; // Total to multiply by | |
| i: Integer; | |
| //Result: LongInt; | |
| begin | |
| Result := 0; | |
| exp := 1; |
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
| /// <summary> | |
| /// Read contents of an embedded resource file | |
| /// </summary> | |
| private string ReadResourceFile(string filename) | |
| { | |
| var thisAssembly = Assembly.GetExecutingAssembly(); | |
| using (var stream = thisAssembly.GetManifestResourceStream(filename)) | |
| { | |
| using (var reader = new StreamReader(stream)) | |
| { |