Skip to content

Instantly share code, notes, and snippets.

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