Skip to content

Instantly share code, notes, and snippets.

View guitarrapc's full-sized avatar
:octocat:

Ikiru Yoshizaki guitarrapc

:octocat:
View GitHub Profile
@sunnyone
sunnyone / UseLayoutRounding.psm1
Last active August 29, 2015 14:04
A script sharpens PowerShell ISE
# Install (simple way)
# Write this code to "%USERPROFILE%\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1"
# Install (module way)
# Place this script to "%USERPROFILE\Documents\WindowsPowerShell\Modules\UseLayoutRounding\UseLayoutRounding.psm1" and
# write "Import-Module UseLayoutRounding" to Microsoft.PowerShellISE_profile.ps1
Add-Type -TypeDefinition @"
using System;
using System.Collections.Generic;
using System.Reflection;

#WindowsでPHP開発すると生きるのがつらいのを軽減する方法 Web PIと WebMatrix を使いましょう。ApacheはやめてIISにしましょう。

つらみが解決されるか?というと、そんなことはないでしょうね。 そのたびに、「××がやりたいだけなのにできない○○なんて糞」と大声で言えば、多量のノイズと少量の有益な情報が速やかに集まるので、それはそれでいいんじゃないのかと思います。ストレス解消にもなるし、DIS上等ですよね。

(こっちにも追記) こんな日本語ドキュメントがあるんだから、MSには金あるよねー。PHP on Windows ガイドライン

  1. Unity AssetStoreからAnselをdownload

  2. メインカメラにAnselスクリプトをアタッチ

  3. Assets/Plugins/ にある AnselPlugin64.dll とAnselSDK64.dllを x86_x64チェックしてapply

  4. C:\Program Files\NVIDIA Corporation\Ansel\Tools>NvCameraEnable.exe whitelisting-everything をコマンドプロンプトで実行

  5. C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraConfigrationを実行してTemp Directoryを指定

  6. 念のため、C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraEnableをダブルクリック実行もした

  7. Unity実行中にAlt+F2でAnsel Windowが出てきたら成功。

Enjoy!

@noshipu
noshipu / ScreenshotCapture.cs
Created April 29, 2017 02:48
OculusStore等で用意するスクリーンショットをUnityで撮るやつ
using System;
using System.IO;
using UnityEngine;
namespace ViRD.Tools
{
public class ScreenshotCapture : MonoBehaviour
{
private RenderTexture m_RenderTexture;
[SerializeField] private Camera m_Camera;
Import-Module Pester -MinimumVersion 4.0
Describe "テスト失敗時のスタックトレース表示確認"{
Context "通常実行"{
It "テスト01(日本語カルチャ)"{
# UIロケールが日本語となっていることを確認
[System.Threading.Thread]::CurrentThread.CurrentUICulture | Should -Be ([cultureInfo]::GetCultureInfo('ja-jp'))
# テスト失敗時の表示確認
$true | Should -Be $false
@prog893
prog893 / README.md
Last active April 10, 2018 07:08
ECS Container Instance scale-in protector
@tomute
tomute / Main.java
Last active May 8, 2018 04:07
書籍「エンジニアとして世界の最前線で働く選択肢」に出てくるホワイトボードテストの例をJavaで回答したもの。
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
public class Main {
public static void main(final String[] args) {
System.out.println("Test");
}
@sh-akira
sh-akira / KeyboardAction.cs
Created July 28, 2018 17:28
Unity Keyboard Event Sample
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
public class KeyboardEventArgs : EventArgs
{
public int KeyCode { get; }
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;