Skip to content

Instantly share code, notes, and snippets.

View kevin-lee's full-sized avatar
🏠
Working from home

Kevin Lee kevin-lee

🏠
Working from home
View GitHub Profile
@kevin-lee
kevin-lee / handlebars-helpers.js
Last active August 29, 2015 13:57
Helpers for Handlebars.js
/**
* 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
@kevin-lee
kevin-lee / WebConfiguration.java
Last active December 22, 2015 16:09
A solution or at least a workaround to the problem described at https://github.com/webjars/jquery/pull/8 for Spring framework users. To use this, you shouldn't use <mvc:resources> or ResourceHandler. It works for both name-version.number.extension and name.extension. e.g.) /webjars/jquery/1.10.2/jquery-1.10.2.min.map, /webjars/jquery/1.10.2/jque…
/**
* 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
@kevin-lee
kevin-lee / InstallCert.java
Last active May 16, 2018 04:52
Tool to add an untrusted (self-signed) SSL certificate to JVM.
/*
* 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.
*
@kevin-lee
kevin-lee / OverridingAndHidingTest.java
Last active March 24, 2017 03:07
Example code of overriding and hiding methods. Check out my comments on http://goo.gl/wZL96
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.");
@kevin-lee
kevin-lee / mvn-dep-tree.sh
Last active December 11, 2015 05:48
Simple script to get a maven dependency tree without using maven's options which are hard to remember.
#!/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 ##
@kevin-lee
kevin-lee / LookAndSaySequenceExample.java
Created September 8, 2012 18:48
Look-and-say sequence examples written in Java (by Kevin) / Please visit http://goo.gl/X94gN for more details.
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&apos;s Blog</a>