Trivial
This file contains hidden or 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
test: gen-nodejs node_modules | |
`npm bin`/nodeunit test.js | |
gen-nodejs: | |
thrift --gen js:node user.thrift | |
node_modules: | |
npm install thrift nodeunit |
This file contains hidden or 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
table <- read.csv('result.csv', head = FALSE) | |
vec <- as.vector(transform(t(table))[,1][2:1025]) | |
png('result1-0.png', width=720, height=405) | |
barplot(sapply(vec[1:128], as.numeric), cex.names = 0.00001) | |
png('result1-1.png', width=720, height=405) | |
barplot(sapply(vec[1000:1025], as.numeric), cex.names = 0.00001) | |
vec <- as.vector(transform(t(table))[,5][2:1025]) | |
png('result2-0.png', width=720, height=405) | |
barplot(sapply(vec[1:128], as.numeric), cex.names = 0.00001) |
This file contains hidden or 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
require 'formula' | |
class Terminator < Formula | |
homepage 'https://launchpad.net/terminator' | |
url 'http://launchpad.net/terminator/trunk/0.97/+download/terminator-0.97.tar.gz' | |
sha1 'aa92a6cacd572f6a834ac1de88ae699c7b7dee69' | |
depends_on 'pkg-config' => :build | |
depends_on :python | |
depends_on :x11 |
This file contains hidden or 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
{AWS} = require './aws' # this is configured aws-sdk | |
async = require 'async' | |
redis = require 'redis' | |
client = redis.createClient(6379, '--our-redis-source--') | |
data = {} | |
dynamo = new AWS.DynamoDB() | |
client.keys '*', (err, res) -> # you can set your pattern | |
toTask = (row) -> |
This file contains hidden or 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 | |
projects=( 'chart-comparison' 'codesprint' 'dynamodb-chart-browser' 'navercrawler' 'nodejs-sandbox' 'sandbox-judge' 'scala-hadoop-example' 'skplanetx' 'voiceserver' ) | |
# for var in ${projects[@]}; do | |
# git clone [email protected]:${var}.git | |
# done | |
for var in ${projects[@]}; do | |
( |
이 문서는 kaggle에 올라온 문제를 푸는 과정을 기술한 것이다.
문제를 처음 읽고, 일단 sample submission(모든 id에 대해 0을 예측한)을 0.01로 바꿔서 제출해보았으나 점수가 sample보다도 낮았다. 그 외 포럼에서 나오는 말들을 종합해 볼때 일단 loss가 0인 데이터가 대다수라는 것을 train.csv를 보지 않고서도 알 수 있었다.
모듈 파일을 옮길 때 일일이 dependency 체크를 하기 귀찮다면, 일단 옮긴 후에 다음 내용을 넣어 주면 된다.
console.trace();
module.exports = require('새 모듈 경로');
만약 코드의 테스트 커버리지가 충분하다면(적어도 모든 require를 한번 이상은 실행해줘야 이 방법으로 안전하게 모듈을 이전할 수 있다), 테스트를 돌리는 것만으로도 어느 모듈에서 해당 모듈을 참조하고 있었는지 나열해주기 때문에, 그것들만 찾아가면서 수정해주면 된다.