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
using System; | |
using System.Linq; | |
using System.Text; | |
namespace TxtTools | |
{ | |
public class SqlFormatter | |
{ | |
private static class Status | |
{ |
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
$brightness = 30; | |
$timeout = 5; | |
[Console]::Write("Brightness[0-100%]> "); | |
$brightness = [int] [Console]::ReadLine(); | |
Get-CimInstance -Namespace root/wmi -Class WmiMonitorBrightnessMethods | | |
Invoke-CimMethod -MethodName WmiSetBrightness -Arguments @{ Brightness = $brightness; Timeout = $timeout; } > $null |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Open\Command] | |
@="\"C:\\Program Files\\PowerShell\\6.0.3\\pwsh.exe\" -noLogo -ExecutionPolicy unrestricted -file \"%1\"" | |
[HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\DefaultIcon] | |
@="\"C:\\Program Files\\PowerShell\\6.0.3\\pwsh.exe\",0" | |
[HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\ShellEx\DropHandler] | |
@="{60254CA5-953B-11CF-8C96-00AA00B8708C}" |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
public class Argument | |
{ | |
public static T Parse<T>(string[] args) | |
{ | |
object obj = Activator.CreateInstance<T>(); |
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
#property copyright "SMMA Sample Indicator." | |
#property link "" | |
#property version "1.00" | |
#property indicator_chart_window | |
#property indicator_buffers 3 | |
#property indicator_plots 3 | |
// 移動平均短期スパン描画設定 | |
#property indicator_label1 "SMMA Short" |
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
# Windows Command Prompt. | |
set url=https://google.co.jp/ | |
wget -r -l 0 -random-wait --restrict-file-names=windows -np -N -E -k -T 15 "%url%" | |
# Linux(bash) | |
url=https://google.co.jp/ | |
wget -r -l 0 -random-wait --restrict-file-names=windows -np -N -E -k -T 15 "$url" | |
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
; https://github.com/karakaram/alt-ime-ahk | |
#include alt-ime-ahk.ahk | |
; vk1D: 無変換 | |
vk1D & 0::Reload | |
vk1D & 8::Edit | |
vk1D & h::Send,{Blind}{Left} | |
vk1D & l::Send,{Blind}{Right} | |
vk1D & k::Send,{Blind}{Up} |
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
using System.Xml.Linq; | |
namespace Json.Linq | |
{ | |
public class JDocument : XDocument | |
{ | |
public JDocument() : base() { } | |
public JDocument(params object[] content) : base(content) { } | |
public JDocument(XDocument other) : base(other) { } | |
public JDocument(XDeclaration declaration, params object[] content) : base(declaration, content) { } |
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
#include <stdio.h> | |
#include <windows.h> | |
#include <winuser.h> | |
#pragma comment(lib, "user32.lib") | |
#define DISPLAY_ON (-1) | |
#define DISPLAY_OFF (2) |
NewerOlder