Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"data": "JP",
"key": "test"
},
{
"data": "TH",
"key": "test"
}
]
@relax-more
relax-more / gist:95edafe64bd12d9abbc32c4eaeb0d431
Created July 21, 2017 06:05
shell related tool or some tools
https://github.com/robbyrussell/oh-my-zsh
http://qiita.com/mollifier/items/0b618f9e969193ccf5c8
https://github.com/zsh-users/antigen
@relax-more
relax-more / gist:bc9d957149b703ce2ffe
Created February 9, 2016 05:18
JS date lib momentjs
http://momentjs.com/
// detail
// http://fasterxml.github.io/jackson-annotations/javadoc/2.0.5/com/fasterxml/jackson/annotation/JsonInclude.Include.html
public class JacksonTest {
String test;
// use "nonDefault" if null
@JsonInclude(Include.NON_DEFAULT)
String nonDefault = "nonDefault";
// ignore if null
@relax-more
relax-more / memo.md
Last active January 6, 2016 03:05
Gmailで無限にメールアドレスを作る簡単な3つの方法

知らなかったのでmemo

gmail の address はこれらの address で別々に作れる

元々が account@gmail hogehoge の場合

  • account+some @
  • a.ccount@ や ac.count
  • account@ googlemail.com

Gmailで無限にメールアドレスを作る簡単な3つの方法

@relax-more
relax-more / MongoSetting.java
Created December 15, 2015 09:43
@qualifier + interface and @Inject (with javax
public class MongoSetting{
@Retention(RetentionPolicy.RUNTIME)
@Qualifier
public @interface MetaDataMongo {}
@Retention(RetentionPolicy.RUNTIME)
@Qualifier
public @interface UserDataMongo {}
@Bean
@relax-more
relax-more / gist:a865df1bdb9d7a0291bb
Last active December 14, 2015 07:09
jmap - Memory Map
@relax-more
relax-more / Application.yml
Last active December 10, 2015 13:02
How to use ConfigurationProperties (feel so good.)
kamera:
pentax:
lens: 18-50 zoom
@relax-more
relax-more / Service.java
Created December 10, 2015 09:29
Java Clock.fixed
@Named
public class Service(){
Clock clock;
public Service(Clock clock){
this.clock = clock;
}
public void work(){
System.Out.plintln("time:" + Instant.now(clock));
}
}