Skip to content

Instantly share code, notes, and snippets.

View nikuyoshi's full-sized avatar
🇯🇵

Hiroki Uchida nikuyoshi

🇯🇵
View GitHub Profile
@nikuyoshi
nikuyoshi / teraterm.ini
Created November 20, 2015 16:27
Teratermの設定ファイル
[BG]
; Use Eterm look-feel Background extension (on/off)
BGEnable=off
; Use AlphaBlend API (on/off)
BGUseAlphaBlendAPI=on
; Susie plugin path
BGSPIPath=plugin
@nikuyoshi
nikuyoshi / TestClass.java
Created August 4, 2015 14:25
JUnitで依存関係のあるテストメソッドを順序通りに実行させる方法 ref: http://qiita.com/nikuyoshi/items/e66ea8b1dfadf7ba52c2
class TestClass {
public void test1(){
// do something
}
public void test2(){
// do something
}
@nikuyoshi
nikuyoshi / file0.txt
Last active August 29, 2015 14:26
【デザインパターン再入門】コードを動かしながら理解をしたいなら「java-design-patterns」がオススメ ref: http://qiita.com/nikuyoshi/items/d79ce27c17b6d2078581
git clone https://github.com/iluwatar/java-design-patterns.git
cd java-design-patterns
mvn eclipse:eclipse
@nikuyoshi
nikuyoshi / LoginForm.java
Last active August 29, 2015 14:25
Servlet3.0から@WebServlet(urlPatterns={"hoge"})を使えばweb.xmlにURLマッピング定義が要らない ref: http://qiita.com/nikuyoshi/items/d9857aa74065f4f67794
@WebServlet(urlPatterns={"/LoginForm"})
public class LoginForm extends HttpServlet{
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response){
}
}
@nikuyoshi
nikuyoshi / settings.xml
Created July 14, 2015 11:41
社内でMaven実行時、外部のMavenリポジトリサーバーからダウンロードができない時の対処方法 ref: http://qiita.com/nikuyoshi/items/567f78e07e5733907491
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
@nikuyoshi
nikuyoshi / コマンド
Created July 8, 2015 10:35
Vimの正規表現を使用してグループ毎に置換する方法 ref: http://qiita.com/nikuyoshi/items/3e053550ebe7ee732e71
:%s/\(.*\)=\(.*\)/hashMap.put("\1", "\2");/g
@nikuyoshi
nikuyoshi / file0.java
Created July 8, 2015 03:57
【Java】フォルダ内の指定した拡張子を一括削除する方法 ref: http://qiita.com/nikuyoshi/items/aae58b3beb182a0c1d2c
// 指定フォルダをhogeとする。
Path path = Paths.get("C:","hoge");
try(DirectoryStream<Path> ds = Files.newDirectoryStream(path, "*.txt") ){
for(Path deleteFilePath : ds){
System.out.println("次のファイルを削除します。: " + deleteFilePath.toString());
Files.delete(deleteFilePath);
}
} catch (IOException e) {
e.printStackTrace();
@nikuyoshi
nikuyoshi / Compassで新規プロジェクト作成
Last active August 29, 2015 14:15
bootstrap-sassのためにSass、Compassの導入をした ref: http://qiita.com/nikuyoshi/items/e10616653671c5cd327b
$ compass create my-new-project -r bootstrap-sass --using bootstrap
directory my-new-project/
directory my-new-project/fonts/bootstrap/
directory my-new-project/javascripts/
directory my-new-project/javascripts/bootstrap/
directory my-new-project/sass/
directory my-new-project/stylesheets/
create my-new-project/config.rb
create my-new-project/sass/styles.scss
create my-new-project/sass/_bootstrap-variables.scss
@nikuyoshi
nikuyoshi / .zshenv
Created February 7, 2015 20:05
Play Framework 2.3.7 コトハジメ ref: http://qiita.com/nikuyoshi/items/64e7606bcc8e512fb976
#Play Framework
export PATH=$PATH:/usr/local/bin/activator
@nikuyoshi
nikuyoshi / file0.js
Last active August 29, 2015 14:14
【まとめ】Ext JSで困ったときに見るサイト等 ref: http://qiita.com/nikuyoshi/items/06d4a378ab5e1b10678c
layout: {
type: 'fit'
},
items:[{
xtype: 'button',
text: 'button1',
},{
xtype: 'button', // ここにはFitレイアウトは適用されない
text: 'button2',
}]