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
from maya import cmds as mc | |
import urllib2 | |
import os | |
import zipfile | |
import shutil | |
def downloadRelease(): | |
userTmpDir = mc.internalVar(userTmpDir=True) | |
dest = os.path.join(userTmpDir, 'simplex.zip') |
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 spam | |
def goodbye(name): | |
print("Goodbye {0}".format(name)) | |
if __name__ == '__main__': | |
print(spam.abc) | |
spam.greet('Dan') |
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
# Do some setup for Maya's Qt | |
set(QT_VERSION_MAJOR 5) | |
# Set moc Path | |
set(QT_MOC_EXECUTABLE ${MAYA_BIN_PATH}/moc) | |
add_executable(Qt5::moc IMPORTED) | |
set_target_properties(Qt5::moc PROPERTIES IMPORTED_LOCATION ${QT_MOC_EXECUTABLE}) | |
set(CMAKE_AUTOMOC TRUE) | |
# Set the UIC Path |
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
""" | |
I don't recommend using this but it was just exploring an idea of automatically adding widgets | |
""" | |
import sys | |
import inspect | |
from PyQt5 import QtWidgets | |
class ActiveParent(object): |
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
use std::process; | |
fn get_parent_pid(pid: u32) -> Vec<u32> { | |
let mut pids: Vec<u32> = Vec::new(); | |
// ps -o ppid=66393 | |
let ret = process::Command::new("ps") | |
.arg("-o") | |
.arg(format!("ppid={}", pid)) | |
.output(); |
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
.cache/ | |
node_modules/ | |
public/ |
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
cmake_minimum_required(VERSION 3.25) | |
project(sqlite_example) | |
set(CMAKE_CXX_STANDARD 20) | |
find_package(SQLite3 REQUIRED) | |
add_executable(${PROJECT_NAME} main.cpp) | |
target_link_libraries(${PROJECT_NAME} PRIVATE ${SQLite3_LIBRARIES}) | |
target_include_directories(${PROJECT_NAME} PRIVATE ${SQLite3_INCLUDE_DIRS}) |
OlderNewer