Skip to content

Instantly share code, notes, and snippets.

View yukihane's full-sized avatar

DEWA Kazuyuki/出羽和之 yukihane

View GitHub Profile
package extensions;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
@yukihane
yukihane / gist:2367888
Created April 12, 2012 14:53
特定の文字列が含まれるファイルを、指定したディレクトリ配下のzipファイル中から探す
import java.io.*;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
@yukihane
yukihane / search.vbs
Created April 13, 2012 13:50
更新日が一定の期間中であるファイルから、特定の文字列が含まれているものを検索する。
'更新日が一定の期間中であるファイルから、特定の文字列が含まれているものを検索する。
'
'使用法:
'cscript search.vbs [検索対象ディレクトリ] [検索文字列] [更新日(最古)] [更新日(最新)]
Option Explicit
Dim STDOUT: Set STDOUT = WScript.StdOut
Dim FS: Set FS = CreateObject("Scripting.FileSystemObject")
Dim ARGS: Set ARGS = WScript.Arguments

Streamとは?

Javadocにあたる

Javadocによると...

A sequence of elements supporting sequential and parallel aggregate operations.

Streamとはシーケンス(sequence)である。

@yukihane
yukihane / project-build.gradle
Last active August 29, 2015 14:24
/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'me.tatarka:gradle-retrolambda:3.2.0'
@yukihane
yukihane / module-build.gradle
Last active August 29, 2015 14:24
/app/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
android {
compileSdkVersion 21
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "yukihane.helloretrolambda"
minSdkVersion 9
@yukihane
yukihane / build.gradle
Created July 16, 2015 03:19
build.gradle for building google/dagger https://github.com/google/dagger. Put in dagger/examples/android-simple/ .
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0-beta4'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.5'
}
}
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/*
Copyright (c) 2002-2015 ymnk, JCraft,Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

基礎的な操作とorg-mode がメイン

ウィンドウ

ウィンドウ分割C-x 2
C-x 3
ウィンドウ移動C-x o
自分以外を閉じるC-x 1
自分を閉じるC-x 0
@yukihane
yukihane / eclipse4.4.2.txt
Last active December 20, 2015 06:15
eclipse(4.4.2/4.5)のimport並び順
import java.net.HttpURLConnection;
import java.util.ArrayList;
import javaj.ClassJavaj;
import javax.swing.JFrame;
import jp.mycompany.myproject.ClassJp;
import org.w3c.dom.DOMException;