This file contains 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
import 'dart:math'; | |
import 'dart:convert'; | |
import 'package:crypto/crypto.dart'; | |
void main(){ | |
var rnd = new Random(); | |
var one = rnd.nextInt(pow(2,8*4)); | |
var two = rnd.nextInt(pow(2,8*4)); | |
var thr = rnd.nextInt(pow(2,8*3)); | |
List<int> onel = UTF8.encode(one.toString()); |
This file contains 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
#coding:utf-8 | |
class BrainFuck | |
def set(src) | |
@mark = 0 | |
@source = src | |
@point = 0 | |
@mem = Array.new(3000,0) | |
end |
This file contains 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
Uncaught Error: The null object does not have a method 'expand'. | |
NoSuchMethodError: method not found: 'expand' | |
Receiver: null | |
Arguments: [Closure: (int) => dynamic] | |
Stack Trace: | |
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:45) | |
#1 oauthEncode (package:oauth/src/core.dart:29:39) | |
#2 Parameter.Parameter (package:oauth/src/core.dart:73:29) | |
#3 mapParameters.<anonymous closure> (package:oauth/src/core.dart:108:34) |
This file contains 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
linking shared-object racc/cparse.so | |
make[2]: ディレクトリ `/tmp/ruby-build.20140802233653.31888/ruby-2.0.0-p0/ext/racc/cparse' から出ます | |
make[2]: ディレクトリ `/tmp/ruby-build.20140802233653.31888/ruby-2.0.0-p0/ext/readline' に入ります | |
compiling readline.c | |
linking shared-object openssl.so | |
readline.c: In function ‘Init_readline’: | |
readline.c:1886:26: error: ‘Function’ undeclared (first use in this function) | |
rl_pre_input_hook = (Function *)readline_pre_input_hook; | |
^ | |
readline.c:1886:26: note: each undeclared identifier is reported only once for each function it appears in |
This file contains 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
./qt-opensource-linux-x86-5.3.1.run: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory |
This file contains 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
ERROR: Loading command: install (LoadError) | |
cannot load such file -- zlib | |
ERROR: While executing gem ... (NameError) | |
uninitialized constant Gem::Commands::InstallCommand |
This file contains 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 'net/http' | |
require 'uri' | |
require 'rexml/document' | |
id = 'your appid' | |
text = '庭には二羽ニワトリがいる' | |
response = Net::HTTP.post_form(URI.parse('http://jlp.yahooapis.jp/MAService/V1/parse'), | |
{'appid'=> id, | |
'sentence' => text, | |
'results' => 'ma'}) |
This file contains 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.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)' に対する定義されていない参照です |
This file contains 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
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); | |
} |
This file contains 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
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 |