Skip to content

Instantly share code, notes, and snippets.

View skitaoka's full-sized avatar

Shinya Kitaoka skitaoka

View GitHub Profile
@jdupuy
jdupuy / SampleVndf_GGX.cpp
Last active April 15, 2024 20:09
Sampling Visible GGX Normals with Spherical Caps
// Helper function: sample the visible hemisphere from a spherical cap
vec3 SampleVndf_Hemisphere(vec2 u, vec3 wi)
{
// sample a spherical cap in (-wi.z, 1]
float phi = 2.0f * M_PI * u.x;
float z = fma((1.0f - u.y), (1.0f + wi.z), -wi.z);
float sinTheta = sqrt(clamp(1.0f - z * z, 0.0f, 1.0f));
float x = sinTheta * cos(phi);
float y = sinTheta * sin(phi);
vec3 c = vec3(x, y, z);
@tam17aki
tam17aki / cepstrum_analysis.ipynb
Last active November 24, 2021 23:42
ケプストラム分析
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@voluntas
voluntas / ayame_labo.rst
Last active March 17, 2024 06:36
時雨堂 Ayame Labo 開発ログ

時雨堂 Ayame Labo 開発ログ

日時

2022-04-19

時雨堂

バージョン

2022.1

URL

https://ayame-labo.shiguredo.app/

このサービスに興味がある人はこの資料に Star をつけてもらえると嬉しいです。

@Ishotihadus
Ishotihadus / atr.md
Last active February 13, 2024 02:53
ATR503文元ネタ集

ATR 音素バランス 503 文元ネタ集

判明している音素バランス文の元ネタを集めた。

Subset A

a01: あらゆる現実をすべて自分のほうへねじ曲げたのだ。

「マルサの女 撮影日記」(伊丹十三)(文藝春秋 1987 年 2 月)(c03、g01 と同一)

非外科的な豊胸手法

免責事項

  • ここに書いてあることが、既知であるかどうかは知らない
  • ここに書いてあることは、私の知る範囲では、科学的に十分に検証された事実とは言えないし、私自身は、正式な臨床試験を行う立場にない
  • ここに書いてあることは、安全性について十分に検討されているとは言えない
  • この文書に記載した情報の利用によって生じた、いかなるトラブル・損失・損害などに対しても、私は一切責任を負わない

概要

性同一性違和の生物学的男性(MtF)が、成長期を終えた後にホルモン補充療法を行っても、バストがあまり大きくならないらしいというのは統計的データは特にないものの、経験的には知られていることらしい。これは、バストの成長に於いて、女性ホルモン以外に、何らかの成長因子が同時に必要となるからと考えられる。

@mbinna
mbinna / effective_modern_cmake.md
Last active April 18, 2024 19:26
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@mebiusbox
mebiusbox / GGXApproxDiffuse.brdf
Created September 8, 2017 14:25
GGX Approximation Diffuse for BRDF Explorer
analytic
# variables go here...
# only floats supported right now.
# [type] [name] [min val] [max val] [default val]
::begin parameters
float albedo 0 1 1
float roughness 0 1 1
::end parameters
@t-ae
t-ae / pixel_shuffler.py
Last active January 23, 2024 02:02
PixelShuffler layer for Keras
"""
The MIT License (MIT)
Copyright (c) 2018 Takehiro Araki.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@voluntas
voluntas / naze_erlang.rst
Last active October 31, 2023 03:33
なぜ Erlang/OTP を使い続けるのか
@tkuchiki
tkuchiki / memo.md
Last active July 22, 2020 08:38
Jenkins の実行ユーザを変更する

実行ユーザ変更

/etc/sysconfig/jenkins

JENKINS_USER="USER"

を設定