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
/** | |
* This is a JSX version of shellinford library: | |
* https://code.google.com/p/shellinford/ | |
* | |
* License: http://shibu.mit-license.org/ | |
*/ | |
import "bit_vector.jsx"; | |
class WaveletMatrix |
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
今回はsetUpでエラーを起こしてみたのですが、ok扱いになってしまっていますね。これはngにしたほうがいいと思います。 | |
同じ例外のメッセージが3回でていますが、最後のだけでいいかな、と思います。 | |
スタックトレースも、多くの人はテスティングフレームワーク自身の部分には興味が無いと思うので、at TestCase.run$SF$V$以下の5行は抹消してもいいかも。 | |
---- | |
$ ./bin/jsx --add-search-path ./oktavia/lib --test ./oktavia/test/test_fm_index.jsx | |
1..22 |
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
import "js.jsx"; | |
native __fake__ class _sqlite3database | |
{ | |
static const OK = 0; | |
static const ERROR = 1; | |
static const INTERNAL = 2; | |
static const PERM = 3; | |
static const ABORT = 4; | |
static const BUSY = 5; |
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
// Creates binary string. It contains 0x0000-0xffff | |
var src = []; | |
for (var i = 0; i < 65536; i++) | |
{ | |
src.push(String.fromCharCode(i)); | |
} | |
var srcStr = src.join(''); | |
// convert buffer to base64string |
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
/** | |
* @external ExternalModule | |
*/ | |
/** | |
* @external ExternalModule.ExternalClass | |
*/ | |
/** | |
* Test function. | |
* @param {external:ExternalModule.ExternalClass} param Parameter. |
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
#! /bin/bash | |
# based on http://goingmyway.net/?p=632 | |
# | |
# check depend commands | |
# | |
_dependCommands="git expect" | |
for _COMMAND in ${_dependCommands}; do | |
if [ ! `whereis ${_COMMAND} |grep ${_COMMAND}` ]; then | |
echo "ERROR!! 必要なコマンドが見つかりません : ${_COMMAND}" |
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
/* | |
* JSX wrapper generated by JSXgenerator | |
* | |
* QTreeView class | |
*/ | |
import "qt/qabstractitemdelegate.jsx"; | |
import "qt/qabstractitemmodel.jsx"; | |
import "qt/qaction.jsx"; | |
import "qt/qbitmap.jsx"; | |
import "qt/qbytearray.jsx"; |
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
#! /bin/sh | |
g++ $1;./a.out |
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
import os, time, shutil | |
distroot = r"c:\Users\shibu\newPictures" | |
created_dirs = set() | |
for dirpath, dirnames, filenames in os.walk(r"C:\Users\shibu\Pictures"): | |
print(dirpath) | |
for filename in filenames: | |
fullpath = os.path.join(dirpath, filename) | |
epoc = os.path.getctime(fullpath) |
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
import os, time, shutil | |
distroot = r"c:\Users\shibu\newPictures" | |
created_dirs = set() | |
for dirpath, dirnames, filenames in os.walk(r"C:\Users\shibu\Dropbox\Camera Uploads"): | |
print(dirpath) | |
for filename in filenames: | |
fullpath = os.path.join(dirpath, filename) | |
dirname = filename[0:10] |