This file contains 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 com.lckymn.kevin.example; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
/** | |
* Visit http://goo.gl/X94gN for more details. | |
* | |
* @author Lee, SeongHyun (Kevin) / <a href="http://blog.lckymn.com">Kevin's Blog</a> |
This file contains 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 | |
########################################################## | |
## Simple script to get maven dependency tree ## | |
## @author Lee, SeongHyun (Kevin) ## | |
## @veraion 0.0.1 (2013-01-17) ## | |
## ## | |
## To change the option 'include' and 'output', change ## | |
## the values of INCLUDE_NAME and OUTPUT_NAME ## | |
## respectively. ## | |
## e.g.) to change 'include' to 'inc' and 'output' to ## |
This file contains 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
class SuperClass | |
{ | |
public static void runStatic(String code) | |
{ | |
System.out.println(code + ": I am the runStatic method in SuperClass."); | |
} | |
public static void runStatic2(String code) | |
{ | |
System.out.println(code + ": I am the runStatic2 method in SuperClass."); |
This file contains 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
/* | |
* Copyright 2006 Sun Microsystems, 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: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* |
This file contains 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
/** | |
* Copyright 2013 Lee, Seong Hyun (Kevin) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
/** | |
* Helpers for Handlebars. | |
* @author Lee, SeongHyun (Kevin) | |
* @version 0.0.1 (2014-03-15) | |
*/ | |
/** | |
* e.g.) | |
* {{{#cond this.isEnabled "<b>Enabled</b>" "<div class='alert-danger'>Disabled</div>"}}} | |
* equivalent to |
This file contains 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
var logger = console ? console : { | |
"log": function() { | |
// It does nothing. | |
} | |
}; | |
/** | |
* Number.prototype.format(n, x, s, c) | |
* | |
* @param integer n: length of decimal |
This file contains 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 scala.language.implicitConversions | |
object Test extends App { | |
case class SomethingElse(value: String) | |
implicit class ToSomethingElse(val value: String) { | |
def toSomethingElse = SomethingElse("###" + value) | |
} |
This file contains 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
Copyright 2015 Lee, Seong Hyun (Kevin) | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
This file contains 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.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.stream.Stream; | |
import static java.util.stream.Collectors.joining; | |
/** |
OlderNewer