Skip to content

Instantly share code, notes, and snippets.

View YasuoFromDeadScream's full-sized avatar

YasuoFromDeadScream

View GitHub Profile
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
}
:LOOP
timeout /t 2 > nul
start rightclick.vbs
goto :LOOP
pause
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "+{F10}"
function getRelation($targetRecipient, $departmentName){
$org = New-Object PSObject | Select-Object 社員名,所属部署
if($targetRecipient.RecipientType -eq "MailUniversalSecurityGroup"){
$departmentName = $targetRecipient.DisplayName
# メンバー情報の取得
Get-DistributionGroupMember $targetRecipient.Alias |
# 取得したメンバをユーザ、グループの順でソート
Select-Object Alias, DisplayName, PrimarySmtpAddress, RecipientType, @{L="SortIndex"; E={switch($_.RecipientType){
"UserMailBox"{0}
import 'package:flutter/material.dart';
class BottomNavigationDemo extends StatefulWidget {
const BottomNavigationDemo({
Key key,
@required this.callback,
}) : super(key: key);
final void Function(int index) callback;
import 'package:flutter/material.dart';
import 'bottom_navi_bar.dart';
void main() => runApp(const App());
class App extends StatelessWidget {
const App({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
import 'package:animations/animations.dart';
import 'package:flutter_iroiro/second_page.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
<script language="javascript" type="text/javascript">
var Choices = [];
// ①問題となる文字列を設定
const mondai = "1 + 1 = ??";
// ②正解となる文字列を設定
const seikai = "2";
// ③選択肢を増やす、7行目を例に行をコピーして張り付ける
Choices.push("2");
Choices.push("4");
###########################################
# 関数定義など
###########################################
function Format-Json([Parameter(Mandatory, ValueFromPipeline)][String] $json) {
$indent = 0;
($json -Split "`n" | % {
if ($_ -match '[\}\]]\s*,?\s*$') {
# This line ends with ] or }, decrement the indentation level
$indent--
###########################################
# 関数定義など
###########################################
function Format-Json([Parameter(Mandatory, ValueFromPipeline)][String] $json) {
$indent = 0;
($json -Split "`n" | % {
if ($_ -match '[\}\]]\s*,?\s*$') {
# This line ends with ] or }, decrement the indentation level
$indent--