1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h(229,21): error C2760: 構文エラー: 予期しないトークン '識別子 '、必要なトークン '型指定子'
1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h(229,21): error C2760: syntax error: unexpected token 'identifier', expected 'type specifier'
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
#!/usr/bin/env python3 | |
from __future__ import annotations | |
import argparse | |
import sys | |
import winreg | |
def convert_to_key(key: bytes) -> str: |
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 <vector> | |
#include <boost/python.hpp> | |
boost::python::dict array_interface(const std::vector<double> &v) { | |
ArrayInterface iface(v); | |
boost::python::dict d; | |
d["shape"] = boost::python::make_tuple(1, 4, 1); | |
d["typestr"] = "|f8"; |
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 Xerces | |
import os.path | |
SOURCE = """<root min="2" max="0"/>""" | |
class Handler(Xerces.ErrorHandler): | |
def __init__(self): | |
super(Handler, self).__init__() | |
self.exceptions = [] | |
def warning(self, exc): |
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
Boost.Python Interface of C++ implementation (Boost.Multiprecision) of decimal.Decimal version of scipy.interpolate.lagrange |
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
from lxml import etree | |
def cabocha_xml(tree): | |
root = etree.Element("sentence") | |
tmp = 0 | |
for i in range(tree.chunk_size()): | |
chunk = tree.chunk(i) | |
elem = etree.SubElement(root, "chunk") | |
elem.attrib["id"] = str(i) |
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
#!/usr/bin/env python3 | |
""" | |
Coordinate converter for List Of Observatory Codes (IAU Minor Planet Center) | |
<http://www.minorplanetcenter.net/iau/lists/ObsCodesF.html> | |
Usage: python3 obs_codes.py input.txt output.csv | |
Example: |
MeCab Windows版ではstd::fstream::fstream(const wchar_t *)
という非標準のMSVC仕様を使用しており、MinGWでビルドができないことが不満だったため、強引にBoost.Iostreamsを使用してみました。
コンパイルが通ることはMSYS2のMinGW32でのみ確認しています。
- 01.diff.patch
- 02.mecab.h.patch
- 03.config.h.patch
- 04.Makefile.patch
01から順番にパッチを当ててください。
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
-----BEGIN PGP SIGNATURE----- | |
Version: GnuPG v1 | |
iQEcBAABAgAGBQJYoCabAAoJEMuvobDi3WQkqEYIAJNYvg46PO3L3bQICmihZj3t | |
Zhd6cdY19yXLgYVgCtdOXK88EDvdm1lDY7XeWrLuBEIw0pEhHuHRjdF7fbpZK4IC | |
EJqHhgARs8iEn+Crqq4r+nTw8fCyHV2K2fRE5KGeIr/J2Os1oqJ3IPAlinBQaSwp | |
rNF0Jb5/y+Hj1bvZmNxeqmeklzJrirA4bEwfU9/u2u6hSDvaj8mGkOg6MW3gLG83 | |
YeOjiEBfz54zQmaBoqxfPwacy7MkSIAP7Bk32SzLGKZKvvz5YaHUrwMbz3QGoVNJ | |
I+9TVeQ6KtvbeD4H73n0xw73yD9hJlkZ22JECkplWd2Wu1e6qvt1FXC8pHK8WY0= | |
=hGhZ |
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
warc-file = 1*warc-record | |
warc-record = header CRLF | |
block CRLF CRLF | |
header = version warc-fields | |
version = "WARC/1.0" CRLF | |
warc-fields = *named-field CRLF | |
block = *OCTET |
NewerOlder