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
# ドライブの使用状況を取得する | |
$diskUsage = Get-WmiObject Win32_LogicalDisk | Where-Object { $_.DriveType -eq 3 } | ForEach-Object { | |
[PSCustomObject]@{ | |
'Drive' = $_.DeviceID | |
'UsedSpaceGB' = [math]::Round((($_.Size - $_.FreeSpace) / 1GB), 2) | |
'FreeSpaceGB' = [math]::Round(($_.FreeSpace / 1GB), 2) | |
'TotalSpaceGB' = [math]::Round(($_.Size / 1GB), 2) | |
} | |
} |
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
package main | |
import ( | |
"fmt" | |
"image/png" | |
"io" | |
"os" | |
"path/filepath" | |
"time" |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
) |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
$(".focus").focus(function(){ | |
if(this.value == "keyword"){ | |
$(this).val("").css("color","#f39"); | |
} |
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
package main | |
import gomail "gopkg.in/gomail.v2" | |
// https://godoc.org/gopkg.in/gomail.v2#example-package | |
func sendMail(from, to, cc, subject, body string) { | |
m := gomail.NewMessage() | |
m.SetHeader("From", from) | |
m.SetHeader("To", to) | |
m.SetHeader("Cc", cc) |
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
package main | |
import ( | |
"fmt" | |
"image" | |
_ "image/gif" | |
_ "image/jpeg" | |
_ "image/png" | |
"os" |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"path/filepath" | |
) | |
func main() { | |
paths := dirwalk(`D:\Temp_working\test`) |
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
use strict; | |
use warnings; | |
use utf8; | |
use Win32::OLE qw(in with); | |
use Win32::OLE::Const 'Microsoft Excel'; | |
Win32::OLE->Option( CP=>Win32::OLE::CP_UTF8 ); | |
use Win32::OLE::Variant; | |
############################################################### | |
# Check Excel's font ColorIndex |
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
Option Explicit | |
Sub ExtractHighlightChars() | |
' 特定の色のついた文字を抽出する | |
Application.ScreenUpdating = False | |
Dim Start, Finish As Variant | |
Start = Time | |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"os/exec" | |
"strings" | |
) |
NewerOlder