-
$HOME/.git_template/hooks/pre-commit
を設置 -
$HOME/.gitconfig
に以下を追記[init] templatedir = ~/.git_template
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
using UnityEngine; | |
public class CopyRotation : MonoBehaviour | |
{ | |
public Transform Reference; | |
Quaternion rotator; | |
void Start() | |
{ | |
rotator = Quaternion.LookRotation(transform.forward, transform.up); |
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
using UnityEngine; | |
using UnityEngine.EventSystems; | |
/// <summary> | |
/// Rotates the GameObject by mouse drag. | |
/// The X and Y axes correspond to yaw and pitch. | |
/// Requires a collider attached on the same object and an EventSystem in the hierarchy. | |
/// </summary> | |
public class MouseRotator : MonoBehaviour, IPointerClickHandler, IPointerDownHandler, IPointerUpHandler | |
{ |
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
using UnityEngine; | |
using VRM; | |
public class VRMGravityCorrector : MonoBehaviour | |
{ | |
VRMSpringBone[] springBones; | |
void Start() | |
{ |
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
using System; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
public class MipmapExtractor : EditorWindow | |
{ | |
[Serializable] | |
public class MipmapExtractorParams : ScriptableObject |
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
setInterval(()=>document.querySelectorAll('span').forEach(e=>{if(e.textContent.substr(-8)!='さんがリツイート')return;while(e.tagName!='ARTICLE')e=e.parentNode;e.style.display='none'}),500) |
- Pixivのmastodonリポジトリ
- 調査時の
master
ブランチ :164bad171f8ebfc5fb240f9c8369df34a506a0df
- 調査時の
pawoo
ブランチ:6b90b6e4228b824287862c74ef01fb155011bd39
おそらく このマージコミット が基本で、その後いくつか改善されている。
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
2 | |
3 | |
5 | |
7 | |
13 | |
17 | |
19 | |
23 | |
29 | |
31 |
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
// ... | |
uniform float4 _GAmplitude; | |
uniform float4 _GFrequency; | |
uniform float4 _GSteepness; | |
uniform float4 _GSpeed; | |
uniform float4 _GDirectionAB; | |
uniform float4 _GDirectionCD; | |
// ここから挿入 |
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
#pragma kernel ComputeForce | |
struct OceanParticle { | |
half3 position; | |
half velocity; | |
half force; | |
}; | |
half2 Tension; | |
half Friction; |
NewerOlder