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 logging import getLogger | |
| logger = getLogger(__name__) | |
| import weakref | |
| from typing import TypeVar, Generic, Any, Callable, List, Dict | |
| T = TypeVar('T') | |
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
| set CMAKE="%VCPKG_DIR%\downloads\cmake-3.8.0-win32-x86\bin\cmake.exe" | |
| set BUILD_DIR="build_vs2015_64" | |
| if not exist %BUILD_DIR% mkdir %BUILD_DIR% | |
| pushd %BUILD_DIR% | |
| %CMAKE% -D CMAKE_INSTALL_PREFIX=%VCPKG_DIR%/installed/x64-windows -G "Visual Studio 14 2015 Win64" .. | |
| popd |
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/rdmd | |
| import std.stdio; | |
| import std.process; | |
| import std.experimental.logger; | |
| import std.json; | |
| import std.path; | |
| import std.file; | |
| import std.conv; | |
| import std.algorithm; | |
| import std.regex; |
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 std.experimental.logger; | |
| import std.experimental.logger.filelogger; | |
| class MyCustomLogger : FileLogger | |
| { | |
| import std.range; | |
| import std.datetime; | |
| import std.path; | |
| import std.traits; | |
| import std.format; |
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
| local build_dir="_build_premake" | |
| -- premake5.lua | |
| location(build_dir) | |
| workspace "lua" | |
| do | |
| configurations { "Debug", "Release" } | |
| platforms { "Win64" } | |
| end |
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
| Texture2D diffuseTexture; | |
| SamplerState diffuseTextureSampler; | |
| struct VS_IN | |
| { | |
| float4 Position: POSITION; | |
| float4 Color: COLOR; | |
| float2 Tex: TEXCOORD0; | |
| }; |
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
| using System; | |
| using UnityEngine; | |
| using UnityEngine.Serialization; | |
| using UnityEngine.EventSystems; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace CustomInput | |
| { | |
| [AddComponentMenu("Event/Integrated Standalone Input Module")] |
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
| # coding: utf-8 | |
| """ | |
| UnityHumanoidHelper | |
| reference | |
| https://github.com/sugiany/blender_mmd_tools | |
| """ | |
| import bpy | |
| 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
| import bpy | |
| def createVertexGroupWithEachBone(mesh, armature): | |
| print(mesh, armature) | |
| for b in armature.bones.keys(): | |
| bpy.ops.object.vertex_group_add() | |
| bpy.context.active_object.vertex_groups.active.name=b | |
| class MirrorVertexGroup(bpy.types.Operator): |
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
| # coding: utf-8 | |
| import asyncio | |
| import datetime | |
| import logging | |
| import time | |
| logger = logging.getLogger(__name__) | |
| logger.addHandler(logging.StreamHandler()) | |
| logger.setLevel(logging.DEBUG) | |