Skip to content

Instantly share code, notes, and snippets.

@shigero
shigero / Cards.java
Last active Jan 4, 2016
15分ぐらいかなーって思ったら30分かかった/(^o^)\ http://ameblo.jp/programming/entry-10001721422.html
View Cards.java
import java.util.Scanner;
class Cards {
public static void main(String[] args) {
System.out.print("numPlayers: ");
Scanner stdIn = new Scanner(System.in);
int numPlayers = stdIn.nextInt();
System.out.print("deck: ");
String deck = String.valueOf(stdIn.nextInt());
@shigero
shigero / archive.bat
Created Dec 1, 2013
ディレクトリ内のファルダを再帰的に取得して、フォルダ単位でzipアーカイブ(無圧縮)するbatファイル。 ※要7-zipインストール
View archive.bat
@echo off
set exe="C:\Program Files\7-Zip\7z.exe"
for /R /D %%i in (*) do (
echo %%i
cd "%%i"
%exe% a -tzip -mx=0 "%%i.zip" * >> NUL
cd ..
if exist "%%i.zip" rmdir /S /Q "%%i"
You can’t perform that action at this time.