Skip to content

Instantly share code, notes, and snippets.

View blmarket's full-sized avatar

Jeong, Heon blmarket

  • Undisclosed company name
  • Vancouver BC, Canada
View GitHub Profile
@blmarket
blmarket / 0-README.md
Last active March 31, 2016 01:44
Rust implementation of codejam problem
@blmarket
blmarket / 0-README.md
Last active February 11, 2016 07:47
libtranslate NAVER service description

translate.naver.com service description file for libtranslate

HOW to use

put services.xml file into ~/.libtranslate, then naver engine is enabled

echo "안녕하세요" | translate-bin -s naver -f ko -t ja
@blmarket
blmarket / 0-README.md
Last active August 29, 2015 14:15
webkitgtk 2.6.5 homebrew formula
#!/bin/bash -e
####
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files
@blmarket
blmarket / 0-README.md
Last active August 29, 2015 14:11
IRC python client.

IRC Python

python based IRC Client.

@blmarket
blmarket / Main.scala
Last active August 29, 2015 14:06
Scala implementation of redis subscribe
import com.redis.RedisClient
import rx.lang.scala._
import rx.lang.scala.schedulers._
object Main {
def main(args: Array[String]): Unit = {
val o = Observable.create(func)
o.subscribe(println(_))
@blmarket
blmarket / 0-README.md
Last active August 29, 2015 14:03
SRM 626 Div 1 Medium

NegativeGraphDiv1


Problem Description

TopCoder Link(doesn't require login)

Idea

charge가 작은 경우에는 그냥 경우의 수를 모두 계산해서 문제를 풀 수 있다. D[c, s, e] := c개만큼 charge를 사용해서 s부터 e까지 가는 데 드는 최소 비용. 이라고 정의하고 DP로 풀면 됨. 다만 c가 꽤 큰 문제이기 때문에, 이걸 그대로 적용하진 않고, 다음과 같은 경우가 성립할 거라고 가정했다.(오른쪽 반례 부분은 추후 설명함)

@blmarket
blmarket / E-fail.cc
Last active August 29, 2015 14:03
ICPC 2014 E Maze Reduction
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <sstream>
#include <numeric>
#include <iterator>
#include <queue>
#include <set>
@blmarket
blmarket / README.md
Last active August 29, 2015 14:02
말하는 서버.

SpeakServer

말하는 서버. 여러개를 동시에 넣어도 큐에 두고 처리함.

Requirement

OS X proper voice pack.(시스템 환경설정에서 설치 가능)

@blmarket
blmarket / main.coffee
Created June 23, 2014 05:49
queue incoming message into redis queue.
http = require 'http'
redis = require 'redis'
bodyParser = require 'body-parser'
express = require 'express'
app = express()
redis_client = redis.createClient '/var/run/redis/redis.sock'
app.post '/', bodyParser.json(), (req, res) ->
redis_client.lpush 'flickr', JSON.stringify(req.body) # we don't need to wait.