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
SELECT | |
a.value AS x, b.value AS y | |
FROM | |
$table$ a | |
LEFT JOIN $table$ b ON (a.id = b.id) | |
WHERE a.category = #categoryA# | |
AND b.category = #categoryB# |
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 my.snippet.model; | |
import lombok.Data; | |
import lombok.EqualsAndHashCode; | |
import org.hibernate.validator.constraints.NotEmpty; | |
@SuppressWarnings("serial") | |
@Data | |
public class Form { |
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 my.snippet.service.impl; | |
import java.util.List; | |
public interface Parser { | |
public List<String> getValue(String urlString, String cssSelector); | |
} |
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 my.snippet.service; | |
import static org.junit.Assert.*; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import org.codehaus.jackson.map.ObjectMapper; |
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
SELECT | |
title | |
,CAST(value AS UNSIGNED) | |
FROM hogeTable |
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
public static String trim(String string) { | |
return string.replaceAll("^[\\s ]*", "").replaceAll("[\\s ]*$", ""); | |
} |
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
SELECT date_format(update_datetime, '%Y/%m/%d') AS date, description, url, COUNT(*) | |
FROM any_table | |
GROUP BY date_format(update_datetime, '%Y/%m/%d'), description, url | |
ORDER BY description, date DESC |
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
$ nohup COMMAND [ARG] |
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
$ rm -rf /data[1-9]/* | |
# delete all files under data1 ~ data9 |
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 org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Node; | |
public class RemoveComments { | |
public static void main(String... args) { | |
String h = "<html><head></head><body>" + | |
"<div><!-- foo --><p>bar<!-- baz --></div><!--qux--></body></html>"; | |
Document doc = Jsoup.parse(h); | |
removeComments(doc); |
OlderNewer