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> | |
<meta http-equiv="content-language" content="ja"> | |
<meta charset="UTF-8"> | |
<title>消費カロリー計算</title> | |
<script> | |
function calc() { | |
var weight = document.getElementById('weight').value; |
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 pid=%1 | |
:loop | |
set /p<nul=%date% %time%, | |
tasklist /fo csv /fi "pid eq %pid%" /nh | |
timeout 60 > nul | |
goto :loop |
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 Socket; | |
use Getopt::Long 'GetOptions'; | |
#--------------- | |
# Constant value | |
#--------------- | |
my $V1_TRAP = 'a4'; | |
my $V2c_TRAP = 'a7'; |
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; | |
my $dir = $ARGV[0]; | |
if((!$dir) or (! -d $dir)) { | |
die "Need to specify a directory."; | |
} | |
my $isFound = 0; | |
checkBomFrom($dir); |
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 | |
Dim objArgs | |
Set objArgs = WScript.Arguments | |
If objArgs.Count < 1 Then | |
WScript.Echo("Specify a dir...") | |
WScript.Quit (1) | |
End If | |
Dim strPattern |
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 | |
Dim objArgs | |
Set objArgs = WScript.Arguments | |
If objArgs.Count = 1 Then | |
Call listFile | |
End If | |
Sub listFile() |
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
public class ChangeBinHex { | |
public static void main(String[] args) { | |
String str = "z"; | |
String hexStr = binToHexString(str.getBytes()); | |
System.out.println(hexStr); // 7a (0111 1100) | |
byte[] bytes = hexStrToBin(hexStr); | |
for (byte b : bytes) { | |
System.out.print(b + " "); // 122 (0111 1010) : Ascii Code of "z" | |
} |
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
// A sample to send a udp data. | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.net.InetAddress; | |
import java.net.UnknownHostException; | |
import java.io.File; |
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 Getopt::Long; | |
my $notExist = 0; | |
my $fromFile; | |
my $toFile; | |
GetOptions( | |
'notExist' => \$notExist, |
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; | |
my $checkStrFile = $ARGV[0]; | |
my $targetFile = $ARGV[1]; | |
open(my $csFh, "< $checkStrFile") or die "Can't open $checkStrFile: $!"; | |
open(my $tgtFh, "< $targetFile") or die "Can't open $targetFile: $!"; | |
while (my $checkLine = <$csFh>) { |
NewerOlder