Skip to content

Instantly share code, notes, and snippets.

shigero /
Last active Jan 4, 2016
import java.util.Scanner;
class Cards {
public static void main(String[] args) {
System.out.print("numPlayers: ");
Scanner stdIn = new Scanner(;
int numPlayers = stdIn.nextInt();
System.out.print("deck: ");
String deck = String.valueOf(stdIn.nextInt());
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 "" * >> NUL
cd ..
if exist "" rmdir /S /Q "%%i"
You can’t perform that action at this time.