囲碁AI大会やCGOSで、双方の読み筋や評価を見たい。
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
#include <iostream> | |
class A { | |
public: | |
virtual int foo() = 0; | |
}; | |
class B : public A { | |
public: | |
virtual int foo() override { |
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
// as fiz.S -o fiz.o | |
// ld -o fiz.out fiz.o | |
.globl _start | |
_start: | |
movl $4,%eax | |
movl $1,%ebx | |
movl $msg,%ecx | |
movl $408,%edx | |
int $0x80 |
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
#include <emscripten.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
static uint64_t x; | |
EMSCRIPTEN_KEEPALIVE uint64_t xorShiftSeed(int initialState) { | |
x = initialState;// & 0xFFFFFFFFFFFFFFFFL; | |
return x; | |
} |
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
#!/bin/bash | |
( | |
cd openhsp | |
git svn fetch | |
) | |
( | |
cd hsp-minimized | |
git fetch ../openhsp svn/trunk |
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
BigInt("0b10001") * BigInt("0b" +( | |
"__##__#_#_#___#__" + | |
"__#_#_#_#_#####__" + | |
"__#__#__#_#______" + | |
"_________________" + | |
"________#________" + | |
"_______#_#_______" + | |
"______#___#______" + | |
"_________________" + | |
"#################" + |
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
#include <set> | |
#include <iostream> | |
template<typename T> size_t collatz(T x) { | |
std::set<T> xs; | |
size_t n = 0; | |
for (;; n++) { | |
if (x == 1) | |
break; | |
if (xs.find(x) != xs.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
/*! jetzt 2015-10-28 | |
* https://ds300.github.io/jetzt/ | |
* Copyright (c) 2015 David Sheldrick and contributors; Licensed Apache 2.0 */ | |
// TinySegmenter 0.1 -- Super compact Japanese tokenizer in Javascript | |
// (c) 2008 Taku Kudo <taku@chasen.org> | |
// TinySegmenter is freely distributable under the terms of a new BSD licence. | |
// For details, see http://chasen.org/~taku/software/TinySegmenter/LICENCE.txt |
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
#include <iostream> | |
using namespace std; | |
int main(void) <% | |
int a = 1 or 2; | |
cerr << a << endl; | |
int b<:2:> = <% 3, 4 %>; | |
cerr << b<:0:> << "," << b<:1:> << endl; | |
%> |
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
public class HashTest { | |
public static void bench() { | |
String str0 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
NewerOlder