Current status: not yet made it works. sorry!
build takes more than 10 min, with fearful fan blowing.
editing more and more, getting into maze.
http://stackoverflow.com/questions/2908640/how-to-added-framework-to-cmake
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
#!/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 |
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
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(_)) | |
TopCoder Link(doesn't require login)
charge가 작은 경우에는 그냥 경우의 수를 모두 계산해서 문제를 풀 수 있다. D[c, s, e] := c개만큼 charge를 사용해서 s부터 e까지 가는 데 드는 최소 비용. 이라고 정의하고 DP로 풀면 됨. 다만 c가 꽤 큰 문제이기 때문에, 이걸 그대로 적용하진 않고, 다음과 같은 경우가 성립할 거라고 가정했다.(오른쪽 반례 부분은 추후 설명함)
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
#include <iostream> | |
#include <algorithm> | |
#include <cstdlib> | |
#include <cstring> | |
#include <cstdio> | |
#include <sstream> | |
#include <numeric> | |
#include <iterator> | |
#include <queue> | |
#include <set> |
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
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. |
NewerOlder