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
// SPDX-License-Identifier: MIT | |
// MIT Software License: https://opensource.org/licenses/MIT | |
// Copyright Vadim Piven <[email protected]> | |
#include <boost/uuid/uuid.hpp> | |
#include <boost/uuid/uuid_io.hpp> | |
#include <algorithm> | |
#include <functional> | |
#include <iterator> |
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
// SPDX-License-Identifier: MIT | |
// MIT Software License: https://opensource.org/licenses/MIT | |
// Copyright Vadim Piven <[email protected]> | |
import Foundation | |
import IOKit | |
func getSystemUUID() -> String? { | |
let platformExpert = IOServiceGetMatchingService( | |
kIOMainPortDefault, |
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
// SPDX-License-Identifier: MIT | |
// MIT Software License: https://opensource.org/licenses/MIT | |
// Copyright Vadim Piven <[email protected]> | |
#include <Windows.h> | |
#include <algorithm> | |
#include <array> | |
#include <cstddef> | |
#include <filesystem> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.example.app.startup</string> | |
<key>AssociatedBundleIdentifiers</key> | |
<array> | |
<string>com.example.app</string> | |
</array> |
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
// SPDX-License-Identifier: CC0-1.0 | |
// Creative Commons Zero v1.0 Universal License: https://creativecommons.org/publicdomain/zero/1.0/deed | |
void MainWindow::takeScreenshot() | |
{ | |
assert(isVisible() || !"call show() before taking screenshot"); | |
QPixmap pixmap(size() * devicePixelRatioF()); | |
pixmap.setDevicePixelRatio(devicePixelRatioF()); |
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 QtQuick 2 | |
Rectangle { | |
width: 400 | |
height: 200 | |
Text { | |
anchors.centerIn: parent | |
text: logic.GetText() | |
} |
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
// SPDX-License-Identifier: CC0-1.0 | |
// Creative Commons Zero v1.0 Universal License: https://creativecommons.org/publicdomain/zero/1.0/deed | |
class BooleanArrayView { | |
array: Uint8Array; | |
constructor(array: Uint8Array) { | |
this.array = array; | |
return new Proxy(this, { |