Skip to content

Instantly share code, notes, and snippets.

View wookayin's full-sized avatar
🎼
Code.

Jongwook Choi wookayin

🎼
Code.
View GitHub Profile
def im_drawbox(window, color='r', class_name='', score=0.0):
"""
Add a detection window (bounding box) into the current plot image.
window: tuple-like of length 4 (xmin, ymin, xmax, ymax)
"""
import matplotlib.pyplot as plt
xmin, ymin, xmax, ymax = window
coords = (ymin, xmin), ymax - ymin, xmax - xmin
currentAxis = plt.gca()
2014-09-28 11:59:00 +0900
./configure
--with-features=huge
--enable-multibyte
--with-macarchs=x86_64
--enable-perlinterp
--enable-rubyinterp
--enable-tclinterp
--with-ruby-command=/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
@wookayin
wookayin / RestTemplateTest.java
Last active August 29, 2015 13:56
Failing tests for HttpComponentsClientHttpRequestFactory (Spring 4.0.x)
package org.springframework.issues;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.net.SocketTimeoutException;
import org.apache.http.conn.ConnectTimeoutException;
import org.junit.Test;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
@wookayin
wookayin / counter.html
Last active December 16, 2015 22:39
Counter.html
<style>
/* from http://sanographix.github.io/css3-countdown/demo/ */
dl.discharge .number-wrapper {
margin: 5px;
height: 100%;
font-size: 68px;
-moz-box-shadow: 0 5px 8px #000000;
-webkit-box-shadow: 0 5px 8px #000000;
box-shadow: 0 5px 8px #000000;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.net.URI;
import org.junit.Test;
import org.springframework.web.util.UriComponentsBuilder;
public class URIComponentsCannotHandleRelativeUri {