Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
local WS_URL = "ws://127.0.0.1:10000/ws" print("Csatlakozas: " .. WS_URL) local ws, err = http.websocket(WS_URL) if not ws then printError("Sikertelen csatlakozas: " .. tostring(err)) return end print("Sikeresen csatlakozva! Varakozas a VS Code-ra...") while true do local event, url, message = os.pullEvent("websocket_message") if url == WS_URL then print("\n--- Uj kod futtatasa ---") local func, syntax_err = load(message, "vscode_remote") if not func then printError("Szintaktikai hiba:") printError(syntax_err) else local success, runtime_err = pcall(func) if not success then printError("Futasideju hiba:") printError(runtime_err) else print("--- Futtatas vege ---") end end end end
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)