$ scala TakeLinks.scala
old version
======================
Test URL1
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."); |
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 |
let primes :: [Integer] | |
primes = sieve [2..] | |
where sieve :: [Integer] -> [Integer] | |
sieve (x : xs) = x : sieve [n | n <- xs, n `mod` x /= 0] | |
-- It works even without parameter types specified yet it is always good to have the type information | |
-- as it tells the users of the function how to use it. | |
-- It can also help you implement the function. | |
-- primes without parameter types (Uncomment it if you want to try). |
/** | |
* @author Kevin Lee | |
* @since 2016-01-15 | |
*/ | |
object WordCount extends App { | |
def wordCount(lines: String): Map[String, Array[Int]] = | |
lines.split('\n') | |
.map(_.trim) | |
.map(_.split("[\\s]+")) | |
.zipWithIndex |
/** | |
* 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 |
#!/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 ## |
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 is a modified version of GitHub Wide. I didn't write it entirely but modified a bit.
Change Applies to
to URLs matching the regexp
and put the following pattern.
https://github.com/[^/]+/[^/]+/(((wiki|issues)([?/][^/]*)*)|(pull/[0-9]+(([\/])((?!files).)*)?))
package cc.kevinlee.examples; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.Optional; | |
import static cc.kevinlee.examples.KeyValPair.*; | |
/** |