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
| import pandas as pd | |
| def main(): | |
| # requirements: pandas, lxml, tabulate | |
| # 正規表現のサイトから「記号」のテーブルを抽出し,Markdown 用のテーブルを出力 | |
| url = 'https://murashun.jp/blog/20190215-01.html' | |
| list_table = pd.read_html(url) | |
| for t in list_table: | |
| print(t.to_markdown()) |
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 <bitset> | |
| using namespace std; | |
| int calcTwoComlement(signed int n) { | |
| // 2 の補数を算出する関数:ビット反転して 1 を足す | |
| return ~n + 0b01; | |
| } | |
| 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 <iostream> | |
| #include <cstdio> | |
| #include <string> | |
| #include <vector> | |
| using namespace std; | |
| typedef long long ll; | |
| ll ctoi(char c){ | |
| if('0' <= c && c <= '9') return (c-'0'); |
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 <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <iterator> // std::back_inserter() | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> // std::copy() | |
| #include <functional> // std::greater<T>() | |
| #include <utility> // std::swap() |
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 <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <iterator> // std::back_inserter() | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> // std::copy() | |
| #include <functional> // std::greater<T>() | |
| #include <utility> // std::swap() |
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 <string> | |
| #include <bitset> // static_cast<std::bitset<8>> | |
| #include <sstream> // std::stringstream | |
| using namespace std; | |
| int main() { | |
| int num = 55; | |
| stringstream ss; | |
| ss << std::bitset<8>(num); |
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 <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <iterator> // std::back_inserter() | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> // std::copy() | |
| #include <functional> // std::greater<T>() | |
| #include <utility> // std::swap() |
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 <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <iterator> // std::back_inserter() | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> // std::copy() | |
| #include <functional> // std::greater<T>() | |
| #include <utility> // std::swap() |
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 <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <iterator> // std::back_inserter() | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> // std::copy() | |
| #include <functional> // std::greater<T>() | |
| #include <utility> // std::swap() |
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 <cstdio> | |
| #include <string> | |
| #include <vector> | |
| #include <iterator> // std::back_inserter() | |
| #include <set> | |
| #include <map> | |
| #include <algorithm> // std::copy() | |
| #include <functional> // std::greater<T>() | |
| #include <utility> // std::swap() |