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 Photoshop; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var app = new Application(); // Photoshop 起動 | |
var doc = app.Open(@"C:\Users\kureikei\Pictures\xmascard2014.jpg"); // ファイルを開く |
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
<div class="loader"></div> | |
<script> | |
$(".loader").html(twemoji.parse('🍣')); | |
</script> |
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
.loader { | |
display: inline-block; | |
width: 36px; | |
height: 36px; | |
animation: spin 1s infinite linear; | |
} | |
@keyframes spin { | |
from { | |
transform: rotate(0deg); |
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
for var 🍫= 0; 🍫<20000; 🍫++ { | |
println("🍫") | |
} |
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
<?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シャツテクスチャ画像へ合成 |
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
<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 .'" />'; | |
} | |
?> |
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
;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 |
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 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>'})}) |
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
ASErr VoicePlugin::AddNotifier(SPInterfaceMessage *message) | |
{ | |
ASErr result = kNoErr; | |
result = sAINotifier->AddNotifier(fPluginRef, "VoicePlugin", kAIDocumentNewNotifier, &fDocumentNewNotifier); | |
aisdk::check_ai_error(result); | |
return result; | |
} |
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
ASErr VoicePlugin::Notify(AINotifierMessage* message) | |
{ | |
ASErr error = kNoErr; | |
if (message->notifier == fDocumentNewNotifier) | |
// 音声再生 | |
return error; | |
} |