I hereby claim:
- I am finalchild on github.
- I am finalchild (https://keybase.io/finalchild) on keybase.
- I have a public key ASAsPgwRbyEI0Ksk75SLwrjhh_fiHFv7ZbzivIrpgWILBQo
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| """ | |
| Script to fetch Cafe24 API documentation and separate it by API resource (h1 level). | |
| Each resource and all its endpoints will be in a single HTML file. | |
| """ | |
| import os | |
| import re | |
| import requests | |
| from bs4 import BeautifulSoup |
| #include <algorithm> | |
| #include <concepts> | |
| #include <iostream> | |
| #include <ranges> | |
| #include <type_traits> | |
| #include <vector> | |
| #define self (*this) | |
| #define repeat(i, n) for (remove_cv_t<remove_reference_t<decltype(n)>> i = 0; i < (n); ++i) | |
| using namespace std; |
I hereby claim:
To claim this, I am signing this object:
| ## tokens | |
| keyword | |
| operator | |
| identifier | |
| literal | |
| symbol | |
| ### keyword | |
| "_" | |
| "as" |
| template<typename T, const T& Combine(const T&, const T&)> | |
| class segment_tree { | |
| darray<T> v; | |
| T default_value; | |
| T combine_considering_default(const T& left_value, const T& right_value) const { | |
| if (left_value == default_value) { | |
| return right_value; | |
| } else if (right_value == default_value) { | |
| return left_value; | |
| } else { |
| const timetableElement = document.getElementById('timetable'); | |
| const roomDataElement = document.getElementById('room-data'); | |
| const timetableGrid = makeGrid(timetableElement); | |
| const roomDataGrid = makeGrid(roomDataElement); | |
| const timetable = processGrid(timetableGrid); | |
| //download(timetable[0], 'timetable1.json'); | |
| //download(timetable[1], 'timetable2.json'); | |
| //download(timetable[2], 'timetable3.json'); |
| function downloadTimetable(timetableElement) { | |
| const timetable = makeTimetable(timetableElement); | |
| download(timetable[0], 'timetable1.json'); | |
| download(timetable[1], 'timetable2.json'); | |
| download(timetable[2], 'timetable3.json'); | |
| } | |
| function download(o, fileName) { | |
| const blob = new Blob([JSON.stringify(o)], {type: 'application/json'}); | |
| const url = URL.createObjectURL(blob); |