Skip to content

Instantly share code, notes, and snippets.

View tomcatmew's full-sized avatar
😼
mewing

Yifei Chen@TomCat tomcatmew

😼
mewing
View GitHub Profile
@walkoncross
walkoncross / bvh文件里的旋转顺序.txt
Created August 4, 2021 21:02
Bvh文件里的旋转顺序(rotation order)用的是intrinsic rotation
Bvh文件里的旋转顺序(rotation order)
Bvh内的旋转用的是intrinsic rotation,举例:
Bvh文件里面的旋转顺序如果是“Zrotation Xrotation Yrotation”,说明是先绕Z转,然后绕“一次旋转后“、“新的”X轴转,然后绕“两次旋转后“、“新的”Y轴转。因为intrinsic rotation跟extrinsic rotation有“逆序等价”的关系,并且extrinsic rotation三次旋转的旋转矩阵可以直接连乘,所以整体的旋转:
v_rot = M_whole * v_ori
M_whole = M_z * M_x * M_y * v_ori
从以下两个bvh的介绍文档里面可以推理出上述结论:
1. Biovision BVH
https://research.cs.wisc.edu/graphics/Courses/cs-838-1999/Jeff/BVH.html
@khushal87
khushal87 / blog3.md
Last active July 5, 2024 21:37
Linking a custom domain from Google domains to Vercel app

Linking a custom domain to a deployed application is confusing and at times you don't get a route on how to link the domain with the website. 😫

In this article, I will be explaining how to link a Custom domain brought in Google Domains service to an application hosted on Vercel.

Perks of using vercel is that it allows adding domain without any verification unlike Heroku/Netlify, which means you don't have to add your billing details to add a domain to your application. Moreover, it is fast, efficient, and easy to use.😁

What is Vercel?

​Vercel is a deployment and collaboration platform for frontend developers. ​Vercel enables developers to host websites and web services that deploy instantly and scale automatically – all without any configuration. Source - Official Docs

@Hirosaji
Hirosaji / .block
Last active December 29, 2023 13:14
three-vrm - VRM motion capture by PoseNet
# three-vrm - VRM motion capture by PoseNet
license: mit
@rngtm
rngtm / HexagonNode.cs
Last active February 8, 2024 03:19
六角形タイルを作るShaderGraphカスタムノード
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor.ShaderGraph;
using System.Reflection;
[Title("Distance", "Hexagon")]
public class HexagonNode : CodeFunctionNode
{
public HexagonNode()
@gocarlos
gocarlos / Eigen Cheat sheet
Last active November 9, 2024 13:28
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.
@JokerMartini
JokerMartini / Custom QTreeWidgetItem | .py
Created November 5, 2015 18:14
Pyside Python: Demonstrates how to create a custom QTreeWidgetItem in pyside.
#!/bin/env python
# ------------------------------------------------------------------------------
# Imports
# ------------------------------------------------------------------------------
import sys
from PySide import QtCore, QtGui
# ------------------------------------------------------------------------------
# Open UI
@keeperofthenecklace
keeperofthenecklace / Github Cheat Sheet
Last active October 26, 2022 20:52
Github Cheat Sheet
Step B.) Creating a branch (and switching to the new branch in one line (Step 2)
**********
a.) git checkout -b [name of new branch]
eg. git checkout -b 2012Tryme
git fetch origin [remote-branch]:[new-local-branch] (Pulling a new branch from a remote repository)
b.) follow step 1
c.) git push origin 2012Tryme
** will add new branch to the repository on git hub
**********************
Step A.) Scheduling the addition of all files to the next commit (Step 1)