Skip to content

Instantly share code, notes, and snippets.

View DoooReyn's full-sized avatar
🍖
Hello, Game Dev.

Reyn DoooReyn

🍖
Hello, Game Dev.
View GitHub Profile
@eyllanesc
eyllanesc / main.py
Created August 4, 2021 17:32
PDF Viewer with QtWebEngine
import sys
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets
def main():
print(
f"PyQt5 version: {QtCore.PYQT_VERSION_STR}, Qt version: {QtCore.QT_VERSION_STR}"
)
@soulik
soulik / os_name.lua
Created May 12, 2015 18:23
OS type and CPU architecture detection in Lua language
local function getOS()
local raw_os_name, raw_arch_name = '', ''
-- LuaJIT shortcut
if jit and jit.os and jit.arch then
raw_os_name = jit.os
raw_arch_name = jit.arch
else
-- is popen supported?
local popen_status, popen_result = pcall(io.popen, "")