Skip to content

Instantly share code, notes, and snippets.

##コード

import 'package:benchmark_harness/benchmark_harness.dart';

// Create a new benchmark by extending BenchmarkBase.
class TemplateBenchmark extends BenchmarkBase {
	const TemplateBenchmark() : super("Template");

	static void main() {
apt-getでいれるもの
libboost-all-dev libusb-1.0-0-dev libboost-dev
1 15/02/22 17:00:17 cd Mask_Operation_matrices/
2 15/01/10 22:44:34 ../../../compile.sh mat_mask_operations
3 15/01/10 22:44:38 ./mat_mask_operations.out
4 15/01/10 22:45:04 ./mat_mask_operations.out ~/Dropbox/Photos/Wallpaper/penguindrum_wp8_2l.jpg
5 15/01/10 22:45:30 vim mat_mask_operations.
6 15/01/10 22:45:32 vim mat_mask_operations.cpp
7 15/01/10 22:46:45 ./mat_mask_operations.out ~/Dropbox/Photos/Wallpaper/penguindrum_wp8_2l.jpg
8 15/01/10 22:47:44 ;s
9 15/01/10 22:47:48 vim mat_mask_operations.cpp
10 15/01/11 15:29:07 cd ..
@sh4869
sh4869 / tweetscsv.rb
Created December 20, 2014 15:23
tweets.csvを扱うサンプル
require 'csv'
text = ""
CSV.foreach("tweets.csv") do |tweets|
text += tweets[5] + "|"
end
puts text
@sh4869
sh4869 / julius.rb
Created December 20, 2014 13:18
Juliusのモジュールモードを使うときの簡単なサンプル
require 'socket'
require 'thread'
client = TCPSocket.new('localhost',10500)
while line = client.gets
puts line
end
\documentclass{jarticle}
\usepackage[dvipdfmx]{graphicx}
\usepackage[top=20truemm,bottom=25truemm,left=25truemm,right=25truemm]{geometry}
\begin{document}
\title{}
\date{\today}
\author{sh4869}
\maketitle
require 'twitter'
require 'csv'
require './token.rb'
SourcePath = File.expand_path('../',__FILE__)
CSVFIle = "#{SourcePath}/tweets.csv"
@rest_client = Twitter::REST::Client.new do |config|
config.consumer_key = CONSUMERKEY
def quicksort(nums,size):
i = 1
las = 1
if size < 2:
return
while size > i:
if nums[0] < nums[i]:
swap = nums[las]
nums[las] = nums[i]
nums[i] = swap
@sh4869
sh4869 / exmaple.dart
Created September 10, 2014 07:56
Dartで時間を文字列にするにはintlを利用する ref: http://qiita.com/sh4869/items/cc64511cec78fb208c2a
import 'package:intl/intl.dart';
import 'package:intl/date_symbol_data_local.dart';
import 'dart:core';
void main(){
var format = new DateFormat.Hms();
var dateString = format.format(new DateTime.now());
print(dataString);
}
@sh4869
sh4869 / error.txt
Created September 3, 2014 05:55
opencv compile error
test.cpp:(.text+0x6f): `cv::imread(std::string const&, int)' に対する定義されていない参照です
test.cpp:(.text+0xbf): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0xd4): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0xf6): `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)' に対する定義されていない参照です
test.cpp:(.text+0x14e): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x166): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x193): `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)' に対する定義されていない参照です
test.cpp:(.text+0x1aa): `cv::_OutputArray::_OutputArray(cv::Mat&)' に対する定義されていない参照です
test.cpp:(.text+0x1c2): `cv::_InputArray::_InputArray(cv::Mat const&)' に対する定義されていない参照です
test.cpp:(.text+0x1ef): `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)' に対する定義されていない参照です