Just a test showing the implementation of undo and redo functionality when drawing over a canvas
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Popup Example</title> | |
</head> | |
<body> | |
<script> | |
function popupCallback(str){ | |
alert("This is callback:" + str); | |
} |
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
/** | |
* 月末日付取得<BR> | |
* 引数で渡された日付の末日日付を返す | |
* | |
* @param _dateDate | |
* 月末日付取得対象日付 | |
* @return Date 該当月の月末日付 | |
* @exception SystemException | |
* @throws SystemException | |
*/ |
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
package sstyle.common; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; |
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
/** | |
* ファイルコピー | |
* @param srcPath | |
* @param destPath | |
* @throws IOException | |
*/ | |
private void csvFileCopy(String srcPath, String destPath) throws IOException { | |
NetworkFile srcFile = new NetworkFile(srcPath); | |
NetworkFile destFile = new NetworkFile(destPath); |
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
del /f/s/q dirname> nul | |
rmdir /s/q dirname |
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
Netstat –ano|findstr “<端口号>” | |
tasklist|findstr “<PID号>” | |
用任务管理器关掉进程 |
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
Map map_par=request.getParameterMap(); | |
Set map_ite1 = map_par.keySet( ); | |
Iterator i = map_ite1.iterator( ); | |
while (i.hasNext()) { | |
String key = (String)i.next(); | |
String par[]=(String[])map_par.get(key); | |
System.out.println(key+"="+par[0]); | |
} |
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
#!/bin/bash | |
python | |
filetosearch = '/home/ubuntu/ip_table.txt' | |
texttoreplace = 'tcp443' | |
texttoinsert = 'udp1194' | |
s = open(filetosearch).read() | |
s = s.replace(texttoreplace, texttoinsert) | |
f = open(filetosearch, 'w') | |
f.write(s) |
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
/**---- 最適化目標 ----**/ | |
-- 全体最適 | |
SELECT /*+ ALL_ROWS */ FROM DUAL; | |
-- 最初のn行に対して最適化 | |
SELECT /*+ FIRST_ROWS (1) */ FROM DUAL; | |
/**---- アクセスパス ----**/ | |
-- テーブル全体を走査 | |
SELECT /*+ FULL(A) */ FROM DUAL A; |