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
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
class Carrier; | |
class BigInt; | |
class Decimal; | |
class Carrier { | |
friend class Decimal; |
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
@echo off | |
rem Javaなどでsrc以下の深いパッケージ名ディレクトリからsrcディレクトリまで飛ぶ | |
rem 現在パスにsrcディレクトリがあるならそこまで戻る | |
rem 現在パスからの上位階層のディレクトリ内にsrcディレクトリがある場合もsrcディレクトリに入る | |
rem 例1 | |
rem C:\develop\helloworld\src\mypackage\hoge\foo\bar>cdsrc.bat | |
rem C:\develop\helloworld\src> | |
rem 例2 |
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
@rem scanfile.bat | |
@rem MSEでコマンドラインからファイルをスキャンする | |
@rem 環境変数PATHの通った適当なディレクトリにこのファイルを設置して使う | |
@if "%~1"=="" goto usagelabel | |
@if /I "%~1"=="-p" goto pauselabel | |
@if /I "%~1"=="/p" goto pauselabel | |
@if not exist "%~1" goto usagelabel | |
"C:\Program Files\Microsoft Security Client\MpCmdRun.exe" -Scan -ScanType 3 -File "%~f1" | |
@exit /b | |
:pauselabel |
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 sample; | |
import java.util.Enumeration; | |
import javax.microedition.io.Connector; | |
import javax.microedition.io.file.FileConnection; | |
import javax.microedition.io.file.FileSystemRegistry; | |
import javax.microedition.lcdui.Command; | |
import javax.microedition.lcdui.CommandListener; | |
import javax.microedition.lcdui.Displayable; |
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
/********************************************************************** | |
Date: 2014-04-14 | |
Author: Leonardone @ NEETSDKASU | |
★素数探索 | |
素数探索のアルゴリズムを思いついたのでここに記す。 | |
※自分で思いついたが、凡人の俺が思いつくくらいなので | |
※既に名のある有名なアルゴリズム、あるいはその劣化バージョンにだと思われる |
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
/* | |
* hosts ファイルの整理 | |
* | |
* author: Leonardone @ NEETSDKASU | |
*/ | |
package myapp.tool; | |
import java.lang.Comparable; | |
import java.lang.String; | |
import java.lang.System; |
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
スレッドセーフなアプリを作るため | |
システムスレッドに関する実験をしてみた | |
実験に使用したコードも添付する | |
アプリの状態遷移やキー入力などでどのスレッドが呼ばれるのか | |
3つのシステムスレッドを確認できた | |
スレッドA | |
MIDletのコンストラクタ生成 |
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
/* 15 puzzle */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <time.h> | |
typedef enum _Boolean { False = 0, True = -1 } Boolean; | |
Boolean confirm(char const *msg) { |
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
1 CLS ALL | |
2 FLUSH OFF | |
3 GOSUB r | |
4 GOSUB w | |
5 GOSUB q | |
6 GOSUB x | |
7 END | |
8 LABEL a | |
9 POSXY A, B | |
10 ADDME A, 16 |
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
@for /r %%i in (.) do if not "%%~dpfi\"=="%~dp0" rmdir "%%~dpfi" |
OlderNewer