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 pygame | |
import os | |
import random | |
from pathlib import Path | |
import logging | |
import inspect | |
# This is a simple mod to add custom music tracks. | |
# Put your music files in the same folder as this script. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 os | |
import pymel.core as pm | |
import mgear.core.attribute as att | |
import mgear.core.transform as tra | |
import mgear.shifter.component as comp | |
from mgear.core.anim_utils import getNamespace | |
# All FK joints used to align the skeleton |
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
pip freeze | foreach-object {pip install -U ($_ -split "==")[0]} |
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 pymel.core as pm | |
from mgear.core.transform import getChainTransform2 | |
# See https://twitter.com/morganloomis_/status/1307263399210840065?s=20 | |
# Pick joint chains | |
jnts = [pm.PyNode("jnt" + str(i)) for i in range(4)] | |
helperJnts = [pm.PyNode("helperJnt" + str(i)) for i in range(3)] | |
# Read world space xforms and positions |
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
; Autohotkey script to toggle Windows 10 touch keyboard. | |
ToggleTouchKeyboard() | |
{ | |
; Translated to AHK from https://stackoverflow.com/a/39385492 | |
Shell_TrayWnd := FindWindowEx( 0, 0, "Shell_TrayWnd") | |
TrayNotifyWnd := FindWindowEx( Shell_TrayWnd, 0, "TrayNotifyWnd") | |
TIPBand := FindWindowEx( TrayNotifyWnd, 0, "TIPBand") | |
if (!TIPBand or ErrorLevel) |
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 obspython as obs | |
import subprocess | |
import os | |
import re | |
import datetime | |
# Info for potential OBS Python hackers! | |
# Tip 1 - Read the "OBS Studio Backend Design" documentation page. Read the documentation table of contents. | |
# Tip 2 - be sure to add obspython.py to your script path to enable completion. | |
# Tip 3 - Some of the Python API is generated at runtime, so it won't show up in obspython.py. |
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
sudo apt-get install devscripts | |
sudo apt-get build-dep libxcb | |
apt-get source libxcb | |
in configure.ac, modify XCB_EXTENSION(XInput, "no") to "yes" | |
./configure --prefix=/usr | |
Tweak xcb-xinput.pc to prefix=/usr | |
sudo make install -j8 |
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
PART 1: Install a boatload of dependencies | |
sudo apt-get install extra-cmake-modules qtbase5-dev libqt5x11extras5-dev qtdeclarative5-dev libkf5coreaddons-dev libkf5i18n-dev libkf5globalaccel-dev libkf5config-dev libkf5xmlgui-dev libkf5widgetsaddons-dev libkf5windowsystem-dev libkf5notifications-dev libkf5dbusaddons-dev plasma-framework-dev kdoctools-dev libx11-dev | |
PART 2: Build and install the Wacom control panel | |
git clone git://anongit.kde.org/wacomtablet | |
cd wacomtablet | |
mkdir build |
NewerOlder