Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/bin/bash | |
| # source config variables | |
| . ../gen_build.sh | |
| # recursively expand globs | |
| shopt -s globstar | |
| cat << 'EOF' > build.ninja | |
| include ../config.ninja |
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 <array> | |
| #include <cmath> | |
| #include <iomanip> | |
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| using Float = double; | |
| using mat = array<array<Float, 3>, 3>; |
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
| %! | |
| 72 dup scale | |
| 1 72 div setlinewidth | |
| 8.5 2 div 11 2 div translate | |
| 0 0 1 1 rectclip | |
| newpath | |
| << |
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
| package main | |
| import "bytes" | |
| import "crc" | |
| import "crypto/md5" | |
| import "encoding/binary" | |
| import influxdb "github.com/influxdata/influxdb/client/v2" | |
| import "github.com/spf13/viper" | |
| import "io" | |
| import "log" |
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
| ;; prevent gc during startup | |
| (setq gc-cons-threshold 402653184) | |
| (add-hook 'after-init-hook #'(lambda () | |
| (setq gc-cons-threshold 800000))) | |
| ;; customization | |
| (custom-set-variables | |
| ;; custom-set-variables was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. |
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
| #!/bin/bash | |
| . ../gen_build.sh | |
| # recursively expand globs | |
| shopt -s globstar | |
| cat <<'EOF' > build.ninja | |
| include ../config.ninja |
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 std.container.dlist, std.digest.md, std.format, std.stdio, std.typecons; | |
| struct Coord { | |
| int x, y; | |
| Coord opBinary(string op)(Coord rhs) | |
| { | |
| return mixin("Coord(x"~op~"rhs.x, y"~op~"rhs.y)"); | |
| } | |
| } |
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 <cstring> | |
| #include <qpdf/QPDF.hh> | |
| #include <qpdf/QPDFWriter.hh> | |
| #include <qpdf/QUtil.hh> | |
| static char const *whoami = 0; | |
| void usage() { |
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
| (use comparse srfi-14) | |
| (declare (unit parser)) | |
| (define sp | |
| (is #\space)) | |
| (define crlf | |
| (char-seq "\r\n")) |