View OVRTrackedRemote.cs
This file contains 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
void Update() | |
{ | |
bool controllerConnected = OVRInput.IsControllerConnected(m_controller); | |
if ((controllerConnected != m_prevControllerConnected) || !m_prevControllerConnectedCached) | |
{ | |
// (追加した行) | |
m_controller = OVRInput.GetActiveController(); | |
m_modelOculusGoController.SetActive(controllerConnected && m_isOculusGo); |
View MathDrill.cs
This file contains 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var r = new Random(); | |
for (int i = 0; i < 10; i++) | |
{ | |
var a = r.Next(1, 10); | |
var b = r.Next(1, 10); | |
Console.Write($"{a} + {b} = "); |
View raoh.js
This file contains 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 c="0ワヲン゛゜6789EアイウエオABCDJカキクケコFGHIOサシスセソKLMNTタチツテトPQRSYナニヌネノUVWX/ハヒフヘホZ?!-★マミムメモ¥&♥☎・ヤ(ユ)ヨ*# ・5ラリルレロ1234".split(''),a=[],i=0,t="0120-208-802";$$("body")[0].innerHTML=$$("body")[0].innerHTML.replace(/".*?"/g,function(s){a.push(s);return "`"}).replace(t,"@").replace(/(\d\d)/g,function(s){return c[+s]}).replace(/`/g,function(s){return a[i++]}).replace("@",t) |
View kemono-friends-syntax-highlight.js
This file contains 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 c=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],i=0;$$(".blob-code").forEach(function(v){v.innerHTML = v.innerText.replace(/./g,function(s){return '<span style="color:#'+c[i++%c.length]+'">'+s+'</span>'})}) |
View IllustratorSDK.vsz
This file contains 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
VSWIZARD 7.0 | |
Wizard=VsWizard.VsWizardEngine.14.0 | |
Param="WIZARD_NAME = IllustratorSDKProject" | |
Param="RELATIVE_PATH = VCWizards\AppWiz\IllustratorSDK" | |
Param="WIZARD_UI = FALSE" |
View VoicePlugin.cpp
This file contains 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
ASErr VoicePlugin::AddNotifier(SPInterfaceMessage *message) | |
{ | |
ASErr result = kNoErr; | |
result = sAINotifier->AddNotifier(fPluginRef, "VoicePlugin", kAIDocumentNewNotifier, &fDocumentNewNotifier); | |
aisdk::check_ai_error(result); | |
return result; | |
} |
View VoicePlugin.cpp
This file contains 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
ASErr VoicePlugin::Notify(AINotifierMessage* message) | |
{ | |
ASErr error = kNoErr; | |
if (message->notifier == fDocumentNewNotifier) | |
// 音声再生 | |
return error; | |
} |
View battle.hsp
This file contains 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
;tvdir = dir_exe+"\\hsptv\\" ; HSPTV素材フォルダ | |
celload "cardbg.png",3 ; 背景 | |
celload "btlcard.png",4 ; カード | |
celdiv 4,128,192 | |
celload "btlenemy.png",5 ; 敵 | |
celdiv 5,64,64 | |
celload "baku.png",6 ; 爆発 | |
celdiv 6,96,96 | |
sdim msg,256 |
View blendtest.php
This file contains 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
<h1>プロ生ちゃんTシャツジェネレーター</h1> | |
<form action="./" method="POST" enctype="multipart/form-data"> | |
<input type="file" name="file"> | |
<input type="submit" value="画像ファイルをアップロードする"> | |
</form> | |
<?php | |
if ($result) { | |
echo '<img src="' . $result .'" />'; | |
} | |
?> |
View blendtest.php
This file contains 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
<?php | |
$result = ""; | |
if (isset($_FILES['file']['error']) && is_int($_FILES['file']['error'])) { | |
$file = $_FILES['file']['tmp_name']; | |
$dir = sys_get_temp_dir(); | |
$id = uniqid(); | |
exec("cp -R /home/pronamajp/blendfiles/ $dir/$id"); // Blender データファイル一式を一時フォルダーへコピー | |
createTshirtTex($file, "$dir/$id/Tsyatu.png"); // アップロードされた画像をTシャツテクスチャ画像へ合成 |
NewerOlder