This file contains hidden or 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
@echo off | |
set /P waittime="Log off: Input wait time [sec]> %waittime%" | |
set /A mintime=waittime/60 | |
echo Log off : %mintime% [min] (%waittime% [sec]) | |
timeout /t %waittime% | |
shutdown /l |
This file contains hidden or 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
module MathUtil | |
# | |
# Wallis の公式によって円周率を求めます。 | |
# | |
# [count] | |
# 計算回数を指定します。 | |
# | |
# 使用例 | |
# print(MathUtil.wallis_formula(10000000)) | |
# >> 3.1415925750808533 |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<configSections> | |
<section name="log4net" type=" log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> | |
</configSections> | |
<log4net> | |
<!-- <appender name="rollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> --> | |
<appender name="rollingLogFileAppender" type="Log4Net.Async.AsyncRollingFileAppender,Log4Net.Async"> |
This file contains hidden or 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
namespace Util | |
{ | |
public class FileUtility | |
{ | |
/// <summary> | |
/// ファイル名として使用可能な形にする。 | |
/// </summary> | |
/// <param name="name">元のファイル名</param> | |
public static string ValidFileName(string name) | |
{ |
This file contains hidden or 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; | |
public class Test | |
{ | |
enum T{ | |
A, | |
B, | |
C = A, | |
D, | |
E, | |
} |
This file contains hidden or 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
/// <summary> | |
/// 値の単位は Hz | |
/// </summary> | |
public enum TemperamentEqual : int | |
{ | |
無音 = 0, | |
ド = 440, | |
ド_シャープ = 466, | |
レ_フラット = ド_シャープ, | |
レ = 494, |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Util | |
{ | |
public class RandomWordMatch | |
{ |
This file contains hidden or 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 OpenCvSharp; | |
using OpenCvSharp.CPlusPlus; | |
using System; | |
namespace OpenCvSharpSample.Samples | |
{ | |
public class CaptureIO | |
{ | |
public static void CameraSave(int cameraId, int fps, int second, bool putText = true) |
This file contains hidden or 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 OpenCvSharp.CPlusPlus; | |
using System; | |
namespace OpenCvSharpSample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
DynamicBackgroundSubtractorCapture(0); |
This file contains hidden or 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 OpenCvSharp; | |
using OpenCvSharp.CPlusPlus; | |
using System; | |
namespace OpenCvSharpSample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |