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.json.jackson.custom.serialization; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.module.SimpleModule; | |
import homo.efficio.json.jackson.custom.serialization.domain.CellPhone; | |
import homo.efficio.json.jackson.custom.serialization.domain.FamilyMember; | |
import homo.efficio.json.jackson.custom.serialization.domain.MobileVendor; | |
import homo.efficio.json.jackson.custom.serialization.serializer.CellPhoneSerializer; | |
import homo.efficio.json.jackson.custom.serialization.serializer.FamilyMemberSerializer; |
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
$.ajax({ | |
url: 'http://localhost:8080/data-binder', | |
contentType: 'application/json', | |
method: 'GET', | |
crossDomain: true, | |
data: { | |
id: "321", | |
addresses: [ | |
{ | |
city: "Seoul", |
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 io.homo_efficio.toby_tv.spring_webflux; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.scheduling.annotation.Async; | |
import org.springframework.scheduling.annotation.EnableAsync; | |
import org.springframework.stereotype.Service; | |
import org.springframework.web.bind.annotation.GetMapping; |
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
render() { | |
this._parent.innerHTML = ''; | |
[ | |
[ | |
DOMRenderer.el('input', 'type', 'text'), | |
DOMRenderer.el('button', 'innerHTML', 'add', 'addEventListener', ['click', e => this.add(new Task(e.target.previousSibling.value))]) | |
].reduce((p, c) => (p.appendChild(c), p), DOMRenderer.el('section')), | |
DOMRenderer.el('hr'), | |
this._data.list.reduce((p, c) => (p.appendChild( | |
[ |
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
"C:\Program Files\Java\jdk-9.0.1\bin\java" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9465 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\lib\idea_rt.jar=9466:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\bin" -Dfile.encoding=UTF-8 -classpath C:\gitrepo\webflux-practice\out\production\classes;C:\gitrepo\webflux-practice\out\production\resources;C:\Users\hanmomhanda\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-actuator\2.0.0.M6\56a4d4dedda7c5f379df063085e9f9434777bc6a\spring-boot-starter-actuator-2.0.0.M6.jar;C:\Users\hanmomhanda\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-rest\2.0.0.M6\2b007d64a77a20cfe9040b89be973fe417c5b953\spring-boot-starter-data-rest-2.0.0 |
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> |
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
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
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
(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" |
OlderNewer