Skip to content

Instantly share code, notes, and snippets.

View delta2323's full-sized avatar

Kenta Oono delta2323

View GitHub Profile
71 70 3
1 27 42
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
@delta2323
delta2323 / EllysRivers.cpp
Created May 26, 2012 10:09
TopCoder Single Round Match 543 Division I 500 EllysRivers
#line 103 "EllysRivers.cpp"
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <set>
#include <map>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#line 73 "ElectionFraudDiv1.cpp"
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <set>
#include <map>
#include <cstring>
#include <cstdlib>
#include <algorithm>
// (BITのコードは省略)
#define all(c) (c).begin(), (c).end()
#define iter(c) __typeof((c).begin)
#define cpresent(c, e) (find(all(c), (e)) != (c).end())
#define rep(i, n) for(int i = 0; i < (int)(n); ++i)
#define tr(c, i) for(iter(c) i = (c).begin(); i != (c).end(); ++i)
#define pb(e) push_back(e)
#define mp(a, b) make_pair(a, b)
@delta2323
delta2323 / gist:2952584
Created June 19, 2012 06:23
Google Code Jam 2012 Round 3 Problem D. small "Lost Password"
// Problem Statement : http://code.google.com/codejam/contest/1835486/dashboard#s=p3
// (include, using省略)
#define all(c) (c).begin(), (c).end()
#define iter(c) __typeof((c).begin())
#define cpresent(c, e) (find(all(c), (e)) != (c).end())
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define tr(c, i) for (iter(c) i = (c).begin(); i != (c).end(); ++i)
#define pb(e) push_back(e)
@delta2323
delta2323 / test.py
Created August 7, 2012 14:18
Test Code of Classifier Client (Python)
#!/usr/bin/env python
import unittest
from classifier.client import classifier
from classifier.types import *
# Please fill the blank according to your own setting.
BUILDDIR=""
def fork_process(port):
@delta2323
delta2323 / ex73.go
Last active August 29, 2015 14:01
Solution for "A Tour of Go" Exercise #73 (This code does NOT work properly)
/*
Solution for "A Tour of Go" Exercise #73 (This code does NOT work properly)
http://tour.golang.org/#73
*/
package main
import (
"fmt"
)
-- NN.Network
module NN.Network where
type Blob = [Float]
data Network d1 d2 = Nw (d1 -> d2)
class INetwork n where
forward :: n d1 d2 -> d1 -> d2
(.) :: n d2 d3 -> n d1 d2 -> n d1 d3
@delta2323
delta2323 / schedule.md
Last active August 29, 2015 14:27
ICML読み会スケジュール
# caffemodelの入手
cd models/bvlc_reference_caffenet/
wget http://dl.caffe.berkeleyvision.org/bvlc_reference_caffenet.caffemodel
# このURLはreadme.mdcaffemodel_urlを参照している
# ダウンロードに結構時間がかかる(30分くらい?)
# imagenet_mean.binaryprotoとsynset_words.txtの入手
cd ../../
./data/ilsvrc12/get_ilsvrc_aux.sh