This file contains hidden or 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
javascript:(function(){var url=/shorts\/(.+)/gi.exec(location.href)[1];var open='https://www.youtube.com/watch?v=%27+url;location.href=open;})(); |
This file contains hidden or 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
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
This file contains hidden or 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
javascript:(function(){var url=location.href;var open='https://waseda.idm.oclc.org/login?url=%27+url;location.href=open;})(); |
This file contains hidden or 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
#ifndef RAYTRACER_VECTOR3D_ | |
#define RAYTRACER_VECTOR3D_ | |
#include <cstddef> | |
#include <cmath> | |
template <typename T> | |
class Vector3d | |
{ | |
private: |
This file contains hidden or 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
namespace ObjectDumpTest | |
{ | |
public class SomeCollections | |
{ | |
public int[] SomeArray { get; set; } = new[] { 0, 1, 2, 3, 4 }; | |
public List<int> SomeList { get; set; } = new List<int> { 0, 1, 2, 3, 4 }; | |
public Dictionary<string, int> SomeLDictionary { get; set; } = new Dictionary<string, int>() { { "One", 1 }, { "Two", 2 } }; | |
public IEnumerable<int> SomeEnumerable { get { return SomeList; } } | |
public IEnumerable<int> SomeLazyEnumerable { get { return LazyNumber(); } } |
This file contains hidden or 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 RxVRTK; | |
using UniRx; | |
using UnityEngine; | |
public class SomeObject : RxVRTK_InteractableObject | |
{ | |
protected void Start() | |
{ | |
this.StartUsingAsObservable() | |
.Subscribe(user => |
This file contains hidden or 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
VRTK_ControllerEvents controllerEvents = GetComponent<VRTK_ControllerEvents>(); | |
controllerEvents.TriggerPressedAsObservable() | |
.Subscribe(_ => | |
{ | |
Debug.Log("Trigger Pressed!"); | |
}); | |
This file contains hidden or 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; | |
/// <summary> | |
/// Box–Muller's method | |
/// </summary> | |
public class RandomBoxMuller | |
{ | |
public static float Range(float min, float max) | |
{ | |
while (true) |
This file contains hidden or 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
var controller = GetComponent<SteamVRInputRx>(); | |
controller.ControllerState | |
.Where(s => s == SteamVRControllerState.TriggerPressDown) | |
.Subscribe(_ => | |
{ | |
// Triggerが引かれたら何かをする | |
}); |
This file contains hidden or 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
use std::io; | |
fn main() { | |
println!("Please Input Count > "); | |
let mut count = String::new(); | |
io::stdin().read_line(&mut count).expect("Failed to read line");; | |
let count: u64 = count.trim().parse().expect("Need u64"); | |
println!("PI = {}",wallis_fomula(count)); |
NewerOlder