Skip to content

Instantly share code, notes, and snippets.

View kaku87's full-sized avatar

kaku kaku87

View GitHub Profile
@kaku87
kaku87 / OracleHints.sql
Created June 1, 2018 01:28 — forked from 544/OracleHints.sql
オラクルの基本的なヒント句
/**---- 最適化目標 ----**/
-- 全体最適
SELECT /*+ ALL_ROWS */ FROM DUAL;
-- 最初のn行に対して最適化
SELECT /*+ FIRST_ROWS (1) */ FROM DUAL;
/**---- アクセスパス ----**/
-- テーブル全体を走査
SELECT /*+ FULL(A) */ FROM DUAL A;
#!/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)
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]);
}

Canvas undo and redo functionality

Just a test showing the implementation of undo and redo functionality when drawing over a canvas

A Pen by abidibo on CodePen.

License.

@kaku87
kaku87 / close.bat
Created December 4, 2013 01:55
关掉端口占用进程
Netstat –ano|findstr “<端口号>”
tasklist|findstr “<PID号>”
用任务管理器关掉进程
@kaku87
kaku87 / filedelete.txt
Created December 3, 2013 06:47
win7快速删除文件
del /f/s/q dirname> nul
rmdir /s/q dirname
@kaku87
kaku87 / fileCopy.java
Created November 14, 2013 00:53
file copy
/**
* ファイルコピー
* @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);
@kaku87
kaku87 / SstyleTools.java
Last active December 24, 2015 06:59
一些公用方法
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;
@kaku87
kaku87 / getEndMonth
Last active December 24, 2015 06:59
月末日付取得
/**
* 月末日付取得<BR>
* 引数で渡された日付の末日日付を返す
*
* @param _dateDate
* 月末日付取得対象日付
* @return Date 該当月の月末日付
* @exception SystemException
* @throws SystemException
*/
@kaku87
kaku87 / parent.html
Created July 22, 2013 08:48
javascript popup close callback event.
<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);
}