Overview는 그래도 학부생 레벨에서 진행할 것이라는 생각을 확실하게 깨준 오버뷰였다. 진짜 수박 겉핥기같은 소개 이후엔 바로 최신 트렌드 소개...;;
그나마 알아들을 만한 녀석이긴 한데... 문제는 수준이 너무 쉬운 편이었다는거... 주변 픽셀 값 가지고 특징점 찾는 알고리즘에서 시작해서 특징점 계산에 관련된 내용을 가볍게 공부했다.
모듈 파일을 옮길 때 일일이 dependency 체크를 하기 귀찮다면, 일단 옮긴 후에 다음 내용을 넣어 주면 된다.
console.trace();
module.exports = require('새 모듈 경로');
만약 코드의 테스트 커버리지가 충분하다면(적어도 모든 require를 한번 이상은 실행해줘야 이 방법으로 안전하게 모듈을 이전할 수 있다), 테스트를 돌리는 것만으로도 어느 모듈에서 해당 모듈을 참조하고 있었는지 나열해주기 때문에, 그것들만 찾아가면서 수정해주면 된다.
// I've copy-pasted these code from http://dogecoinpaperwallet.net/ | |
var window = {}; | |
// | |
// Array.prototype.map function is in the public domain. | |
// Production steps of ECMA-262, Edition 5, 15.4.4.19 | |
// Reference: http://es5.github.com/#x15.4.4.19 | |
if (!Array.prototype.map) { | |
Array.prototype.map = function (callback, thisArg) { | |
var T, A, k; |
use Data::Dumper; | |
use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); | |
$_ = `ls`; | |
@_ = split /\n/; | |
@anis = grep /\.mkv$/, @_; | |
@zips = grep /\.zip$/, @_; | |
# print Dumper(@anis); |
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. |
#include <iostream> | |
#include <algorithm> | |
#include <cstdlib> | |
#include <cstring> | |
#include <cstdio> | |
#include <sstream> | |
#include <numeric> | |
#include <iterator> | |
#include <queue> | |
#include <set> |
TopCoder Link(doesn't require login)
charge가 작은 경우에는 그냥 경우의 수를 모두 계산해서 문제를 풀 수 있다. D[c, s, e] := c개만큼 charge를 사용해서 s부터 e까지 가는 데 드는 최소 비용. 이라고 정의하고 DP로 풀면 됨. 다만 c가 꽤 큰 문제이기 때문에, 이걸 그대로 적용하진 않고, 다음과 같은 경우가 성립할 거라고 가정했다.(오른쪽 반례 부분은 추후 설명함)
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(_)) | |