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 bpy | |
| class RigLayers(bpy.types.Panel): | |
| bl_idname = 'POSE_PT_RigLayers' | |
| bl_label = "Rig Layers" | |
| bl_space_type = "VIEW_3D" | |
| bl_region_type = "UI" | |
| bl_context = "posemode" | |
| bl_category = 'CUSTOM_CATEGORY' |
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
| """ | |
| Example Usage | |
| ============= | |
| A folder titled png_icons will be created in the current directory | |
| Run as: | |
| blender icons_geom.blend --background --python blender_icons_geom_png.py |
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
| // ==UserScript== | |
| // @name Phabricator Move Comment Box | |
| // @version 1 | |
| // @match https://developer.blender.org/D* | |
| // @description Move the phabricator comment form to a more reasonable location | |
| // ==/UserScript== | |
| // Util for inserting after nodes | |
| function insertAfter(newNode, existingNode) { | |
| existingNode.parentNode.insertBefore(newNode, existingNode.nextSibling); |
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 <iostream> | |
| #include <string> | |
| #include <limits> // For numeric_limits<streamsize>::max() | |
| using namespace std; | |
| int main() { | |
| int number; | |
| string name; | |
| // This first example checks cin.fail() to see if the input was not |
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 <iostream> | |
| #include <string> | |
| #include <cstdlib> // for rand(), srand(), time() | |
| using namespace std; | |
| const int NUMBER = 10; | |
| // Example of a generalized function to return a random int in a range | |
| int RandIntInRange(int min, int max) { | |
| // See zyBooks 5.15 for more info |
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
| // These are the functions I used for printing out the arrays | |
| // And vectors. Maybe you will find them useful | |
| void PrintIntVector(vector<int> vec) { | |
| cout << "["; | |
| for (unsigned i = 0; i < vec.size(); ++i) { | |
| cout << vec.at(i); | |
| if (i < vec.size() - 1) { | |
| cout << ", "; | |
| } |
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
| """Run in a directory containing multiple project directories | |
| Or give a single path to analyze as an argument to the script. | |
| """ | |
| import math | |
| import os | |
| import sys | |
| from dataclasses import dataclass | |
| def walkdir(path, ignore=[], ignoreexts=[]): |
OlderNewer