Great series of short articles introducing Apple's Metal framework.
- 2022-04-01: Day 1: Devices
 - 2022-04-02: Day 2: Buffers
 - 2022-04-03: Day 3: Commands
 - 2022-04-04: Day 4: MTKView
 - 2022-04-05: Day 5: Shaders
 - 2022-04-06: Day 6: Pipelines
 
Great series of short articles introducing Apple's Metal framework.
| Shader "Mobile VR Highlight" { | |
| Properties { | |
| _ColorOutline ("Outline", Color) = (1,1,1,1) | |
| _ColorInterior ("Interior", Color) = (0.25,0.25,0.25,0.25) | |
| _ColorInteriorFaded ("Interior Faded", Color) = (0.1,0.1,0.1,0.1) | |
| _ColorInteriorOcc ("Interior Occluded", Color) = (0.15,0.15,0.15,0.15) | |
| _ColorInteriorOccFaded ("Interior Occluded Faded", Color) = (0.05,0.05,0.05,0.05) | |
| _PulseRateMod ("Pulse Rate Modifier", Float) = 4.0 | |
| _OutlneWidth ("Outline Pixel Width", Float) = 1.0 | |
| } | 
| using UnityEngine; | |
| [RequireComponent( typeof(Camera) )] | |
| public class FlyCamera : MonoBehaviour { | |
| public float acceleration = 50; // how fast you accelerate | |
| public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
| public float lookSensitivity = 1; // mouse look sensitivity | |
| public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
| public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable | 
| const std = @import("std"); | |
| test "fields" { | |
| const U1s = packed struct { | |
| a: u1, | |
| b: u1, | |
| c: u1, | |
| }; | |
| const x = U1s{ .a = 1, .b = 0, .c = 0 }; | 
Download and Install Emscripten
/home/usergit clone https://github.com/emscripten-core/emsdk.gitcd emsdkgit checkout main./emsdk install latest./emsdk activate latestsource ./emsdk_env.sh| using System; | |
| using UnityEngine; | |
| [AttributeUsage(AttributeTargets.Field)] | |
| public class MinMaxSliderAttribute : PropertyAttribute | |
| { | |
| public readonly float max; | |
| public readonly float min; | 
| #include <math.h> | |
| // otherwise C++ function names are mangled | |
| extern "C" { | |
| void float_multiply_array(float *data, int w, int h, int ncpp) { | |
| int length = w*h; | |
| int currentPixelIndex = 0; | |
Note: a lot of programmers talk about UI without mentionning the user even once, as if it was entirely a programming problem. I wonder what we’re leaving off the table when we do that.
Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.
The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from
WebRTCを使ってみよう! で紹介されている rfc5766-turn-server は既に更新が終わり、別のプロジェクトになっています。
coturn を代わりに使用します。 https://github.com/coturn/coturn/wiki/Downloads から最新バージョンをダウンロードしてビルドします。
※ダウンロードページに turnserver-*-amazon-aws-ec2-x86_64.txt というファイルあり! EC2 ではこの内容にも注意すること