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
Map.Entry<String, Long> mostCommonEntry = | |
List.of("나 혼자 길을 걷고", "나 혼자 티비 보고", "나 혼자 취해보고", "이렇게 매일 울고 불고") | |
.stream() | |
.map(s -> s.split(" ")) | |
.flatMap(Arrays::stream) | |
.collect(Collectors.groupingBy(Function.identity(), Collectors.counting())) | |
.entrySet().stream() | |
.min(Map.Entry.comparingByValue(Comparator.reverseOrder())) | |
.orElseThrow(() -> new RuntimeException("no entry error")); | |
System.out.println(mostCommonEntry.getKey() + ": " + mostCommonEntry.getValue()); |
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
openapi: 3.0.1 | |
info: | |
title: Monolith Simple Mall | |
version: v0 | |
servers: | |
- url: "https://localhost:8443" | |
description: 서버 주소 | |
paths: | |
/v1/customers: | |
post: |
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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "OpenAPI definition", | |
"version": "v0" | |
}, | |
"servers": [ | |
{ | |
"url": "https://localhost:8443", | |
"description": "Generated server url" |
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
2019-09-29 21:43:38.305 INFO 62831 --- [ restartedMain] i.h.quartz.QuartzSchedulerApplication : Started QuartzSchedulerApplication in 6.855 seconds (JVM running for 8.725) | |
2019-09-29 21:43:38.319 INFO 62831 --- [ restartedMain] io.homo_efficio.quartz.init.InitRunner : Init Runner executed. | |
WARNING: An illegal reflective access operation has occurred | |
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/XXXXX/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.1.9.RELEASE/dc3815439579b4fa0c19970e6b8e5d774af8d988/spring-core-5.1.9.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) | |
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils | |
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | |
WARNING: All illegal access operations will be denied in a future release | |
2019-09-29 21:43:38.366 E |
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
use std::rc::Rc; | |
use std::cell::RefCell; | |
#[derive(Debug)] | |
struct MyType { | |
num: i32 | |
} | |
impl MyType { | |
pub fn add(&mut self, amount: i32) { |
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
(require '[clojure.string :as str]) | |
(use '[clojure.string :only [index-of]]) | |
(def lines (str/split (str | |
"2017-18 James Harden, Houston Rockets (Voting)\n" | |
"2016-17 Russell Westbrook, Oklahoma City Thunder (Voting)\n" | |
"2015-16 Stephen Curry, Golden State Warriors (Voting)\n" | |
"2014-15 Stephen Curry, Golden State Warriors\n" | |
"2013-14 Kevin Durant, Oklahoma City Thunder\n" | |
"2012-13 LeBron James, Miami Heat\n" |
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 homo.efficio.java8.sort_by_value; | |
import java.util.Comparator; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
import static java.lang.System.out; | |
import static java.util.Comparator.reverseOrder; | |
import static java.util.Map.Entry.comparingByValue; |
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
use itertools::Itertools; | |
const MVPS: &str = concat!( | |
"2017-18 James Harden, Houston Rockets (Voting)\n", | |
"2016-17 Russell Westbrook, Oklahoma City Thunder (Voting)\n", | |
"2015-16 Stephen Curry, Golden State Warriors (Voting)\n", | |
"2014-15 Stephen Curry, Golden State Warriors\n", | |
"2013-14 Kevin Durant, Oklahoma City Thunder\n", | |
"2012-13 LeBron James, Miami Heat\n", | |
"2011-12 LeBron James, Miami Heat\n", |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>CodeSpitz71-1</title> | |
</head> | |
<body> | |
abc | |
<section id="data"></section> | |
<script> |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>CodeSpitz71-1</title> | |
</head> | |
<body> | |
<section id="data"></section> |
NewerOlder