次のソースコードが動作するよう、すごろくゲームを開発せよ。
game = Game.new
game.setBoard(Board.new("public/board.csv"))
game.addPlayer(Player.new("Taro"))
game.addPlayer(Player.new("Jiro"))
game.setDice(Dice.new)
game.start()
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#include <opencv/cv.h> | |
#include <opencv/highgui.h> | |
#include <opencv/ml.h> | |
void doMosaic(IplImage* in, int x, int y, | |
int width, int height, int size); | |
int main (int argc, char **argv) | |
{ | |
int i, c; |
# imports and basic notebook setup | |
from cStringIO import StringIO | |
import numpy as np | |
import os | |
import scipy.ndimage as nd | |
import PIL.Image | |
from IPython.display import clear_output, Image | |
from google.protobuf import text_format | |
import caffe |
g2.2xlarge or better
https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#LaunchInstanceWizard:ami=ami-ffba7b94
$ curl http://a0.awsstatic.com/pricing/1/ec2/linux-od.min.js | sed -n 's/.*callback(//p' | sed -e 's/);$//g' | sed 's/\([0-9a-zA-Z]*\):/\"\1\":/g' | jq .config.regions[] | jq 'select(.region=="ap-northeast-1")'