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 MyClass = /** @class */ (function () { | |
function MyClass() { | |
} | |
MyClass.prototype.MyFunction = function (x) { | |
console.log("the input number is " + x + "."); | |
}; | |
return MyClass; | |
}()); | |
var myInstance = new MyClass(); | |
myInstance.MyFunction(3); |
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
System.Diagnostics.Process p = new System.Diagnostics.Process(); | |
p.StartInfo.FileName = "shutdown"; // コマンド名 | |
p.StartInfo.Arguments = "-r -f"; // オプション | |
p.StartInfo.CreateNoWindow = true; // 黒い画面は表示しない。 | |
p.StartInfo.UseShellExecute = false; // プロセスを新しいウィンドウで起動しない。 | |
p.Start(); |
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
message = "うんたらかんたら" | |
current_session_id = intentMessage.session_id | |
hermes.publish_end_session(current_session_id, message) |
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
{ | |
"html": { | |
"prefix": "htmltemplate", | |
"body": [ | |
"<!DOCTYPE html>", | |
"<html lang=\"$1\">", | |
"\t<head>", | |
"\t\t<meta charset=\"$2\"/>", | |
"\t\t<title>$3</title>", | |
"\t</head>", |
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 | |
// Drink.php | |
// 名前空間の定義 | |
namespace Mochi\MyNamespace; | |
// クラスの定義 | |
class Drink | |
{ | |
// メンバ変数 |
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 | |
// Soda.php | |
// 名前空間の定義 | |
namespace Mochi\MyNamespace; | |
// 外部ファイルのインポート | |
require_once 'Drink.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 | |
// main.php | |
// 外部ファイルのインポート | |
require_once 'Soda.php'; | |
// 名前空間のエイリアス | |
use Mochi\MyNamespace as Mine; | |
// Sodaクラスのインスタンスの生成。コンストラクタの呼び出し。 |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"/> | |
</head> | |
<body> | |
本文 | |
</body> | |
</html> |
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
<!-- 色を定義する --> | |
<SolidColorBrush x:Key="BaseBrush" Color="#EEEEEE" /> | |
<!-- BaseBrushの色を参照するSolidColorBrush --> | |
<SolidColorBrush x:Key="SampleBrush" Color="{Binding Color, Source={StaticResource BaseBrush}}" /> |
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
<TextBox x:Name="TestTextBox" Grid.Column="1" HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" Text="りんご" VerticalAlignment="Center" Width="200"> | |
<TextBox.Triggers> | |
<DataTrigger Binding="{Binding TestFlag}" Value="True"> | |
<Setter Property="Text" Value="バナナ"/> | |
</DataTrigger> | |
</TextBox.Triggers> | |
</TextBox> |