Skip to content

Instantly share code, notes, and snippets.

Avatar

YasuoFromDeadScream

View GitHub Profile
View create_ddb_del_data_json.ps1
###########################################
# 関数定義など
###########################################
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--
View create_ddb_putdata_json.ps1
###########################################
# 関数定義など
###########################################
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--
View addQuiz.html
<script language="javascript" type="text/javascript">
var Choices = [];
// ①問題となる文字列を設定
const mondai = "1 + 1 = ??";
// ②正解となる文字列を設定
const seikai = "2";
// ③選択肢を増やす、7行目を例に行をコピーして張り付ける
Choices.push("2");
Choices.push("4");
View main.dart
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
View main.dart
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(
View bottom_navi_bar.dart
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;
View output_organization_list.ps1
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}
View rightclick.vbs
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "+{F10}"
View kick.bat
:LOOP
timeout /t 2 > nul
start rightclick.vbs
goto :LOOP
pause
View main.dart
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
}