Skip to content

Instantly share code, notes, and snippets.

View rioil's full-sized avatar
🥽

rioil rioil

🥽
View GitHub Profile
@rioil
rioil / main.ps1
Created September 26, 2023 00:22
PowerShellからSwitchBotのREST APIを叩くサンプル
Param(
# On or Off
[Parameter(Mandatory=$true)][ValidateSet("On", "Off")][string] $state
)
$clientToken = "<client token>";
$clientSecret = "<client secret>";
$plugMiniDeviceIds = ("<device id 1>", "<device id 2>");
$apiEndpoint = "https://api.switch-bot.com/v1.1/"
@rioil
rioil / 4-2_2.cs
Created November 1, 2020 11:52
データ構造とアルゴリズム4-2(2)
public class main{
public static void Main(){
initM();
for(int i=0; i<=10; i++){
System.Console.WriteLine($"{i}:{M(i)}");
}
}
private static int[] m = new int[11];
@rioil
rioil / LICENSE.txt
Last active April 24, 2020 12:54
covid-19-shiga- i18n-test
MIT License
Copyright (c) 2020 rioil
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
make: *** 未完了のジョブを待っています....
make: *** [out/target/product/BEJ2/obj/GYP/shared_intermediates/android_webview/jni/InputStream_jni.h] Error 1
make: *** [out/target/product/BEJ2/obj/GYP/shared_intermediates/android_webview/jni/CancellationSignal_jni.h] Error 1
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1103, in <module>
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1099, in main
GenerateJNIHeader(input_file, output_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 1012, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)