This file contains hidden or 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 <stdio.h> | |
| int main() | |
| { | |
| const wchar_t *utf8fname = L"test1.txt"; | |
| const wchar_t *utf8str_en = L"Hello World\n"; | |
| const wchar_t *utf8str_ja = L"こんにちは!\n"; | |
| FILE *fp1; | |
| if ( (fp1 = _wfopen(utf8fname, L"w, ccs=UTF-8")) != NULL ) | |
| { |
This file contains hidden or 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 <cstdlib> | |
| #include <cstring> | |
| #include <cstdio> | |
| namespace { | |
| const int SizeY = 64; | |
| const int SizeX = 8; | |
| } | |
| int main() |
This file contains hidden or 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 <cstdlib> | |
| #include <cstring> | |
| #include <cstdio> | |
| namespace { | |
| const int SizeY = 64; | |
| const int SizeX = 8; | |
| } | |
| int main() |
This file contains hidden or 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 <cstdlib> | |
| #include <cstring> | |
| #include <cstdio> | |
| namespace { | |
| const int SizeY = 64; | |
| const int SizeX = 8; | |
| } | |
| int main() |
This file contains hidden or 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 "DynamicArray.h" | |
| #include <iostream> | |
| // 以下テストコード | |
| #define FILE_PATH_MAX 255 | |
| #define FILE_TIMESTAMP_MAX 15 /* YYYYMMDD HHMMSS */ | |
| struct FileData { | |
| char timestamp[FILE_TIMESTAMP_MAX + 1]; | |
| char filepath[FILE_PATH_MAX + 1]; | |
| }; |
This file contains hidden or 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
| using System; | |
| using System.IO; | |
| using System.Net; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| // 2014/09/30 改定 | |
| // 多少冗長な書き方やめました。変な処理も修正。説明も追加 |
This file contains hidden or 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
| using System; | |
| using System.IO; | |
| using System.Net; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| // 2014/09/30 v1 | |
| // 多少冗長な書き方やめました。変な処理も修正。説明も追加 |
This file contains hidden or 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 -*- | |
| # using Python 3x | |
| import urllib.request | |
| def get_html(url): | |
| httpres = None | |
| res = "" | |
| try: | |
| httpres = urllib.request.urlopen(url) | |
| # bytearrayでとってくるからデコードする |
This file contains hidden or 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> | |
| #include <cstdlib> | |
| namespace | |
| { | |
| enum ErrorCode | |
| { | |
| DataSetFault = 1, | |
| MemoryAllocationFalut = 2 | |
| }; |
This file contains hidden or 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/python | |
| # -*- coding: utf-8 -*- | |
| import yaml | |
| import codecs | |
| if __name__ == "__main__": | |
| f = None | |
| try: | |
| f = codecs.open(u"test.yaml") | |
| raw_data = f.read() |