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
| name: CloudaysDeploy | |
| on: | |
| push: | |
| branches: [main] | |
| # release: | |
| # types: [created] | |
| jobs: |
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
| <template> | |
| <div class="p-5 h-screen bg-gray-100"> | |
| <h1 class="text-xl mb-2">Your orders</h1> | |
| <div class="overflow-auto rounded-lg shadow hidden md:block"> | |
| <table class="w-full"> | |
| <thead class="bg-gray-50 border-b-2 border-gray-200"> | |
| <tr> | |
| <th class="w-20 p-3 text-sm font-semibold tracking-wide text-left">No.</th> | |
| <th class="p-3 text-sm font-semibold tracking-wide text-left">Details</th> |
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
| /** | |
| * --- | |
| * --- | |
| * Partial, Pick, Omit and Required | |
| * --- | |
| * --- | |
| */ | |
| interface Props { | |
| key1: string; | |
| key2: number; |
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
| /** | |
| * Encryption class for encrypt/decrypt that works between programming languages. | |
| * | |
| * @author Vee Winch. | |
| * @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference. | |
| * @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here. | |
| */ | |
| class Encryption { |
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
| import atexit | |
| # First, a lot of imports. I don't use all of them all the time, | |
| # but I like to have them available. | |
| import csv | |
| import datetime as dt | |
| import hashlib | |
| import json | |
| import math |
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
| #include <curl/curl.h> | |
| #include <string> | |
| size_t writeFunction(void *ptr, size_t size, size_t nmemb, std::string* data) { | |
| data->append((char*) ptr, size * nmemb); | |
| return size * nmemb; | |
| } | |
| int main(int argc, char** argv) { | |
| auto curl = curl_easy_init(); |
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
| /build |
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 PySide6 import QtWidgets | |
| import sys | |
| from tests.test_tree import TreeModel | |
| class TreeWindow(QtWidgets.QMainWindow): | |
| def __init__(self): | |
| super().__init__() | |
| self.tree_view = QtWidgets.QTreeView() |
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 PySide6 import QtCore | |
| class TreeItem: | |
| def __init__(self, data, parent=None): | |
| self.parent_item = parent | |
| self.item_data = data | |
| self.child_items = [] | |
| def appendChild(self, item): | |
| self.child_items.append(item) |
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
| #!/usr/bin/env python | |
| """ | |
| Refs: | |
| "[Maya-Python] Customized display of files/folders in a QTreeView that is using QFileSystemModel." | |
| https://groups.google.com/d/topic/python_inside_maya/TaFm2yNToJ8/discussion | |
| """ | |
| from PySide import QtCore, QtGui | |
NewerOlder