$ npm install
$ gulp watch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.io.RandomAccessFile; | |
import static java.lang.System.out; | |
import java.nio.channels.FileChannel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.EnumMap; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.function.Supplier; | |
public class RockPaperScissors { | |
class FormatException extends Exception { | |
public FormatException(String message) { | |
super(message); |
こんにちは。 @katzchangです。
VOYAGE GROUPでは人事評価制度の一つとして技術力評価会というのが年に2回ほど開催されて、半年くらいの仕事から何かテーマをピックアップしつつ、別チームのエンジニア2名とお話をしつつ、なんと評価までされてしまうという、とても楽しい会があります。
評価する側のエンジニアも多様で、ある程度の評価軸はありつつも、それぞれの質問や評価はそれなりに個性が出るものだろうなーと眺めています。ということで、私なりの質問や評価のポイントをいくつか挙げてみます。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET time2=%time: =0% | |
SET MAKEDATETIME=%date:~-10,4%%date:~-5,2%%date:~-2,2%%time2:~0,2%%time2:~3,2%%time2:~6,2% | |
echo -Xloggc:gc.log.%MAKEDATETIME% |
VirtualBox仮想マシンのネットワークはデフォルトでNATとなっている。
VirtualBox の場合、NAT ネットワークアダプタには 10.0.2.0/24 の IP アドレスが割り当てられ、ゲスト OS から見える ホスト OS の IP アドレスには 10.0.2.2
が設定される仕様。
したがってホストOS上に建てたサーバーにゲストOSからアクセスしたい場合は、http://10.0.2.2
とアクセスすれば普通に見ることができる。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example; | |
import org.apache.commons.beanutils.expression.DefaultResolver; | |
public class SafeResolver extends DefaultResolver { | |
@Override | |
public String next(String expression) { | |
String property = super.next(expression); | |
if ("class".equalsIgnoreCase(property)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.util.function.*; | |
import java.util.stream.*; | |
import static java.util.stream.Collectors.*; | |
import static java.util.Comparator.*; | |
/** | |
* http://stackoverflow.com/questions/22845574/how-to-dynamically-do-filtering-in-java-8 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get current swap usage for all running processes | |
# Erik Ljungstrom 27/05/2011 | |
# Updated: 2013-11-13 Yuichiro Saito | |
SUM=0 | |
OVERALL=0 | |
for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do | |
PID=`echo $DIR | cut -d / -f 3` | |
PROGNAME=`ps -p $PID -o comm --no-headers` | |
for SWAP in `grep Swap $DIR/smaps 2>/dev/null| awk '{ print $2 }'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo JavaOne Strategy Keynote 9-22-2013 | |
wget -O strategy.mp4 --referer=http://medianetwork.oracle.com/video/player/2685497644001 http://sun.edgeboss.net/download/sun/mar2012/1460825906/20145548_169.mp4 | |
echo IBM JavaOne Keynote 9-22-2013 | |
wget -O IBM.mp4 --referer=http://medianetwork.oracle.com/video/player/2685481227001 http://sun.edgeboss.net/download/sun/mar2012/1460825906/20145552_169.mp4 | |
echo JavaOne Technical Keynote 9-22-2013 | |
wget -O technical.mp4 --referer=http://medianetwork.oracle.com/video/player/2685720528001 http://sun.edgeboss.net/download/sun/mar2012/1460825906/20145556_169.mp4 | |
echo JavaOne Community Keynote 9-26-2013 |
NewerOlder