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
"""パラメーターJSONのセーブロードスクリプト | |
Houdiniの1SOPノードにあるすべてのパラメーターをJSONファイルに出力し、 | |
そのJSONファイルを入力しSOPノードのすべてのパラメーターを上書きする機能を提供します。 | |
Todo: | |
* PythonSOPノードを追加(この例では"../python1")し、Python Code欄にこのソースコードを貼り付ける | |
* パラメーターのセーブロードを行いたいノードにEdit Parameter Interface...で次のインターフェースを追加する | |
* Fileタイプのファイルパス入力欄を追加する(Nameは"FilePath"であること) | |
* Buttonタイプの実行ボタンを追加し、Callback Script(Python)を次のようにする(セーブの場合) |
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
trait Task { | |
fn update(&mut self); | |
fn is_died(&self)->bool; | |
fn spawn(&self)->Box<dyn Task>; | |
} | |
struct UnitA { | |
name : String, | |
life : i32, |
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
# ライブラリの読み込み | |
import os | |
import torch | |
import torch.nn as nn | |
from torch.utils.data import DataLoader | |
from torchvision import datasets, transforms | |
from torchvision.transforms import ToTensor, Lambda, Compose | |
# 定義 | |
class NNModel(nn.Module): |
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
//=========================================================================== | |
//! | |
//! @file SoftParticle.hlsli | |
//! @brief ソフトパーティクルの定数バッファなどの定義 | |
//! | |
//=========================================================================== | |
//----------------------------------------------------------- | |
//! @name 定義 | |
//----------------------------------------------------------- |
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
using System; | |
using System.IO; | |
using System.Linq; | |
// .Net Framework 4.6.1 | |
namespace DeepLearningTest01 | |
{ | |
class Program | |
{ |
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
Console.WriteLine("コマンド開始"); | |
var result = 1 + 1; | |
Console.WriteLine("処理結果 1 + 1 = {0}", result); | |
Console.WriteLine("コマンド終了"); |
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
UCLASS() | |
class ALevelControl : public AActor | |
{ | |
GENERATED_BODY() | |
public: | |
ALevelControl(); | |
// Called every frame | |
virtual void Tick( float DeltaTime ) override; |
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
UCLASS() | |
class ALevelControl : public AActor | |
{ | |
GENERATED_BODY() | |
public: | |
ALevelControl(); | |
// Called every frame | |
virtual void Tick( float DeltaTime ) override; |
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
UCLASS() | |
class ALevelControl : public AActor | |
{ | |
GENERATED_BODY() | |
public: | |
ALevelControl(); | |
// Called every frame | |
virtual void Tick( float DeltaTime ) override; |
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
//ObservableObject:監視対象に指定 | |
class Observable: ObservableObject { | |
//Published:変更を自動通知 | |
@Published var wordData: [Word] = load("wordList.json") | |
} | |
struct ContentView: View { | |
@ObservedObject var words = Observable() | |
var listRows : [ListRow] = [] | |
var body: some View { |
NewerOlder