Note
|
|
This file contains 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
# Comma-separated list of components to include in the instantiated process. The | |
# default value 'all' includes all components that are required to form a | |
# functional Grafana Mimir instance in single-binary mode. Use the '-modules' | |
# command line flag to get a list of available components, and to see which | |
# components are included with 'all'. | |
# CLI flag: -target | |
#target: "all" | |
# When set to true, incoming HTTP requests must specify tenant ID in HTTP | |
# X-Scope-OrgId header. When set to false, tenant ID from -auth.no-auth-tenant |
This file contains 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
# A comma-separated list of components to run. The default value 'all' runs Loki | |
# in single binary mode. The value 'read' is an alias to run only read-path | |
# related components such as the querier and query-frontend, but all in the same | |
# process. The value 'write' is an alias to run only write-path related | |
# components such as the distributor and compactor, but all in the same process. | |
# Supported values: all, compactor, distributor, ingester, querier, | |
# query-scheduler, ingester-querier, query-frontend, index-gateway, ruler, | |
# table-manager, read, write. A full list of available targets can be printed | |
# when running Loki with the '-list-targets' command line flag. | |
# CLI flag: -target |
This file contains 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
library(tidyverse) | |
library(jsonlite) | |
library(here) | |
save_plot <- function(...) ggsave(width = 7, height = 5, ...) | |
data <- here("base.json") %>% | |
fromJSON() %>% | |
`[[`("thread") %>% | |
map2(names(.), function(thread, thr_name) { |
This file contains 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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'pdf/reader' | |
# credits to : | |
# https://github.com/yob/pdf-reader/blob/master/examples/text.rb | |
# usage example: | |
# ruby pdf2txt.rb /path-to-file/file1.pdf [/path-to-file/file2.pdf..] | |
ARGV.each do |filename| |
This file contains 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 essential packages | |
\usepackage{amsmath} | |
\usepackage{amsfonts} | |
\usepackage{amssymb} | |
% Define common constructs | |
\newcommand{\cat}[1]{|#1\rangle} | |
\newcommand{\bra}[1]{\langle#1|} | |
\newcommand{\bracat}[2]{\langle#1|#2\rangle} | |
\newcommand{\sqav}[1]{\big|#1\big|^2} % square of the absolute value |
This file contains 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
#!/usr/bin/python | |
"""linear_program.py: Solves an simple integer linear program. | |
Maximize | |
f(x) = 6x₁ + 4x₂ | |
with | |
x₁, x₂ ∈ ℕ |
This file contains 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
PROJ_NAME=<...> | |
PROJ_FILE=$(PROJ_NAME).ewp | |
IAR_FLAGS = -log info | |
IAR_FLAGS += -parallel 4 | |
CONFIG=* | |
# Brings the current build configuration up to date by compiling, assembling, | |
# and linking only the files that have changed since the last build. |
This file contains 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
%% Copyright (c) 2020-2021 Benno Bielmeier | |
%% SPDX-License-Identifier: MIT | |
%% | |
%% GLSL definition | |
%% | |
\lstdefinelanguage{GLSL}% | |
{% | |
morekeywords={% | |
% HLSL constants | |
false,FALSE,NULL,true,TRUE,% |
NewerOlder