Skip to content

Instantly share code, notes, and snippets.

박현재 hyeonjae

Block or report user

Report or block hyeonjae

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hyeonjae
hyeonjae / AppTests.java
Last active Jan 12, 2017
spring annotation method argument performance issue test
View AppTests.java
@Before
public void setup() throws Exception {
this.mockMvc = webAppContextSetup(this.wac).build();
// warm up
for (int i = 0; i < 3000; i++) {
this.mockMvc.perform(post("/")
.contentType(MediaType.APPLICATION_JSON)
.header("Dooray-App-Key", UUID.randomUUID().toString()))
.andExpect(status().isOk())
View JsonNodeParser.java
import com.fasterxml.jackson.databind.JsonNode;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class JsonNodeParser {
private final String DOT = ".";
@hyeonjae
hyeonjae / md5.swift
Created Jun 1, 2015
MD5 standalone in Swift 1.2
View md5.swift
/*
* http://rosettacode.org/wiki/MD5/Implementation#Swift
* https://github.com/krzyzanowskim/CryptoSwift/tree/master/CryptoSwift
* MD5 - no need to external library version
*/
import Foundation
let shift : [UInt32] = [7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21]
let table: [UInt32] = (0 ..< 64).map { UInt32(0x100000000 * abs(sin(Double($0 + 1)))) }
You can’t perform that action at this time.