Trema 0.5.1をCentOSにインストールする。同時にOpen vSwitchもインストールする。
動作検証はHello Tremaを動かして、自分でadd-brしたブリッジもつなぐ。
なので、まだpacket_inは飛んでない。
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import csv | |
import codecs | |
import numpy as np | |
import MeCab | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.cluster import KMeans, MiniBatchKMeans |
void testApp::draw(){ | |
char file_path[] = "/tmp/capture"; | |
char cmd[256]; | |
snprintf(cmd, sizeof(cmd), "screencapture -x %s", file_path); | |
system(cmd); | |
myImage.loadImage(file_path); | |
myImage.draw(20,20, 640, 480); | |
} |
function doGet(e) { | |
var json = {"isSale": false}; | |
var response; | |
try { | |
response = UrlFetchApp.fetch("http://www.misterdonut.jp/sale/index.html"); | |
} catch(err) { | |
return createOutput(json); | |
} | |
var regexp = /(\d+)年(\d+)月(\d+)日.*(\d+)月(\d+)日/; |
use Socket; | |
my @sessions; | |
# connect IF by UNIX domain socket | |
my $path = "/tmp/sf-tap/tcp/http"; | |
my $s; | |
socket($s, AF_UNIX, SOCK_STREAM, 0); | |
connect($s, pack_sockaddr_un($path)) or die "cannot connect to $path"; |