Skip to content

Instantly share code, notes, and snippets.

{
"rules": {
"adjacent-overload-signatures": true,
"ban-types": [
[
"Object",
"Avoid using the `Object` type. Did you mean `object`?"
],
[
"Function",
@0x414c
0x414c / settings.json
Last active May 27, 2018 12:57
settings.json
{
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "block",
"editor.emptySelectionClipboard": false,
"editor.fontFamily": "Iosevka, Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.fontWeight": "500",
"editor.mouseWheelZoom": true,
"editor.renderControlCharacters": true,
#! /usr/bin/env bash
set -euC -o pipefail
root_dir="$(pwd)"
platform='MinGW-w64'
build_dir="build-${platform}"
install_dir="install-${platform}"
lib_name='Halide'
lib_ver='release_2018_02_15'
#! /usr/bin/env bash
set -euC -o pipefail
root_dir="$(pwd)"
platform='MinGW-w64'
build_dir="build-${platform}"
install_dir="install-${platform}"
lib_name='fmt'
lib_ver='5.0.0'
#!/usr/bin/env bash
export PATH="./bin:${PATH}"
# base_style='v-a-singlestorey v-g-singlestorey v-zero-dotted v-tilde-high v-asterisk-high v-underscore-low v-paragraph-high v-m-shortleg v-caret-high v-at-short v-eszet-sulzbacher v-brace-curly'
# base_style='v-a-singlestorey v-g-singlestorey v-m-shortleg v-t-standard v-q-straight v-zero-dotted v-tilde-high v-asterisk-high v-paragraph-high v-caret-high v-underscore-high v-at-short v-eszet-sulzbacher v-brace-curly v-dollar-open v-numbersign-slanted'
base_style='v-a-singlestorey v-g-singlestorey v-m-shortleg v-t-standard v-q-straight v-zero-dotted v-tilde-high v-asterisk-high v-paragraph-high v-caret-high v-underscore-high v-at-short v-eszet-sulzbacher v-brace-curly v-dollar-open v-numbersign-slanted v-three-flattop'
sans_style='v-l-italic v-i-italic'
slab_style='v-l-serifed v-i-serifed'
set_name='Iosevka++'
export default class AnalogClock implements ClockInterface {
hour: number;
minute: number;
constructor(h: number, m: number) {
this.hour = h;
this.minute = m;
}
tick(): void {
@0x414c
0x414c / task-4.cxx
Last active October 23, 2017 19:26
#include <cstddef> // EXIT_SUCCESS
#include <cstdint> // std::{uint8_t, int32_t}
#include <limits> // std::numeric_limits
#include <string> // std::string
#include "fmt/format.h" // fmt::format
#include "Halide/Halide.h" // Halide::*
#include "Halide/tools/halide_image_io.h" // Halide::Tools::{load, save}_image
https://math.stackexchange.com/questions/2408108/what-are-some-mathematically-interesting-computations-involving-matrices
#!/usr/bin/env bash
export PATH="./bin:${PATH}"
# base_style='v-a-singlestorey v-g-singlestorey v-zero-dotted v-tilde-high v-asterisk-high v-underscore-low v-paragraph-high v-m-shortleg v-caret-high v-at-short v-eszet-sulzbacher v-brace-curly'
# base_style='v-a-singlestorey v-g-singlestorey v-m-shortleg v-t-standard v-q-straight v-zero-dotted v-tilde-high v-asterisk-high v-paragraph-high v-caret-high v-underscore-high v-at-short v-eszet-sulzbacher v-brace-curly v-dollar-open v-numbersign-slanted'
base_style='v-a-singlestorey v-g-singlestorey v-m-shortleg v-t-standard v-q-straight v-zero-dotted v-tilde-high v-asterisk-high v-paragraph-high v-caret-high v-underscore-high v-at-short v-eszet-sulzbacher v-brace-curly v-dollar-open v-numbersign-slanted v-three-flattop'
sans_style='v-l-italic v-i-italic'
slab_style='v-l-serifed v-i-serifed'
# 'make' builds libHalide.a, the internal test suite, and runs the internal test suite
# 'make run_tests' builds and runs all the end-to-end tests in the test subdirectory
# 'make {error,performance}_foo' builds and runs test/{...}/foo.cpp for any
# cpp file in the corresponding subdirectory of the test folder
# 'make test_foo' builds and runs test/correctness/foo.cpp for any
# cpp file in the correctness/ subdirectoy of the test folder
# 'make test_apps' checks some of the apps build and run (but does not check their output)
# 'make time_compilation_tests' records the compile time for each test module into a csv file.
# For correctness and performance tests this include halide build time and run time. For
# the tests in test/generator/ this times only the halide build time.