Skip to content

Instantly share code, notes, and snippets.

:octocat:
Without intelligence

Final Child finalchild

:octocat:
Without intelligence
View GitHub Profile
@finalchild
finalchild / processor.js
Last active Jul 28, 2018
Hangaram High School timetable processor
View processor.js
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);
@finalchild
finalchild / processor2.js
Last active Dec 16, 2018
Hangaram Timetable Reader gist
View processor2.js
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');
View segment_tree.cpp
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 {
@finalchild
finalchild / lexical-structure.txt
Created Jul 5, 2019
pseudo lexical structure
View lexical-structure.txt
## tokens
keyword
operator
identifier
literal
symbol
### keyword
"_"
"as"
View keybase.md

Keybase proof

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:

You can’t perform that action at this time.