Skip to content

Instantly share code, notes, and snippets.

@h-sao
h-sao / reading_DX12_book.md
Last active March 29, 2022 04:39
Dx12本の読み進め履歴とメモ

2022/3

Date DirectX 12の魔道書 Dx12 programming vol.3
29 テッセレーションステージの説明 -p.28
24-28 手が回らなかった
22 DirectXまわりのSDK/Tool/Helperを調査
DirectXチームの公式Discordにも参加
18-21 休憩
17 第4章キューブマップレンダリング -p.25
16 stpe06: スワップチェインイメージへのレンダーターゲットビュー生成
@h-sao
h-sao / gist:e39dc295094310278ca6bf4a80b4c127
Created September 25, 2019 02:55
data:text/html, <body contenteditable>
data:text/html, <body contenteditable>
@h-sao
h-sao / Install_log_Homebrew_on_macOS.sh
Created May 30, 2019 03:36
Install_log_Homebrew_on_macOS
# Homebrew入ってない状態
SAO-MAC:~ sao.haruka$ brew -V
-bash: brew: command not found
# Homebrew本家に載っているインストールコマンドを入力!
SAO-MAC:~ sao.haruka$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
@h-sao
h-sao / Rvalue_Lvalue.cpp
Created July 12, 2017 07:32
Rvalue/Lvalue
struct Foo{
using Type = std::vector<Bar>
// 1 Lvalue
Type & data() & { return data_; }
// 2 Rvalue
Type data() && { return std::move ( data_ ); }
Type data_;
}
Foo makeFoo();
@h-sao
h-sao / UniRx timer sample.cs
Last active July 10, 2017 02:09
UniRx timer sample
var timerSubscription = OBservble.Timer(TimeSpan.FromSeconds(30a)
.Subscribe(_ => nextScene()));
OBservble.EverUpdate().Select(_=> Input.AnyKey).Where(x=>x == true)
.Subscribe(x =>
{
timerSubscription.Dispose();
timerSubscription = OBservble.Timer(TimeSpan.FromSeconds(30a)
.Subscribe(_ => nextScene()));
@h-sao
h-sao / Unity Sprite on front of camera
Last active June 21, 2017 06:48
Unity Sprite on front of camera
public class TestExecutor : MonoBehaviour
{
private Texture2D blackTexture;
private SpriteRenderer testSprite;
void Start()
{
// Create black texture
blackTexture = new Texture2D(32, 32, TextureFormat.RGB24, false);
blackTexture.SetPixel(0, 0, Color.white);
@h-sao
h-sao / Install_log_Pylint_on_Anaconda.log
Created April 17, 2017 11:08
Install_log_Pylint_on_Anaconda
(C:\utils\Anaconda3) D:\dev\anaconda>activate tensorflow
(tensorflow) D:\dev\anaconda>anaconda search -t conda pylint
Using Anaconda API: https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
Name | Version | Package Types | Platforms
------------------------- | ------ | --------------- | ---------------
???/pylint | 1.1.0 | conda | linux-64
: http://www.pylint.org
@h-sao
h-sao / Install_log_on_Windows_for_Keras.log
Created April 12, 2017 10:09
Install_log_on_Windows_for_Keras
# Error occured
(tensorflow) D:\dev\anaconda>pip install keras
Collecting keras
Downloading Keras-2.0.3.tar.gz (196kB)
100% |################################| 204kB 3.3MB/s
Collecting theano (from keras)
Downloading Theano-0.9.0.tar.gz (3.1MB)
100% |################################| 3.1MB 409kB/s
Collecting pyyaml (from keras)
@h-sao
h-sao / Install_log_on_Windows_for_TensorFlow_GPU.log
Created April 7, 2017 11:07
Install log on WIndows for TensorFlow GPU
# Install log on WIndows for TensorFlow GPU
# Check version
(tensorflow) D:\dev\anaconda>pip -V
pip 9.0.1 from C:\utils\Anaconda3\envs\tensorflow\lib\site-packages (python 3.5)
(tensorflow) D:\dev\anaconda>conda -V
conda 4.3.14
@h-sao
h-sao / gist:93f5eba4d4ffd91bbb1b
Created February 23, 2015 11:49
(f)(a); の見える範囲とは?→
void f(~); // (1)
namespace ns{
void f(~); // (2)
void g(){
::f(a); // 完全にGlobal(1)を探しに行く
}
}
void f(~) // (1);