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
#include <fenv.h> | |
// enable protection against fishy floating point arithmetic | |
void __attribute__ ((constructor)) trapfe() { | |
feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO); | |
} |
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 python | |
import json | |
import os | |
import subprocess | |
import sys | |
def run(cmd): | |
string_cmd = u" ".join(cmd) |
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
--- | |
Language: Cpp | |
# BasedOnStyle: Google | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: AlwaysBreak | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: false |
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
From fe9ab8393c38a454864043a5b70c0c9af5c1baa9 Mon Sep 17 00:00:00 2001 | |
From: Benjamin Bannier <[email protected]> | |
Date: Tue, 26 Apr 2016 16:42:38 +0200 | |
Subject: [PATCH] Site validation. | |
--- | |
site/Gemfile | 4 +++- | |
site/Rakefile | 7 +++++++ | |
2 files changed, 10 insertions(+), 1 deletion(-) |
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
filter { | |
grok { | |
match => { "message" => "^(?<loglevel>[F|E|I|W])%{MONTHNUM:month}%{MONTHDAY:monthday}\s+%{TIME:time}\s+%{POSINT:pid}\s+(?<file>\w*.\w*):%{POSINT:line}]\s+%{GREEDYDATA:msg}" } | |
} | |
mutate { | |
add_field => { | |
"timestamp" => "%{time} %{month} %{monthday} 2016" | |
} | |
} | |
date { |
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
<!DOCTYPE html> | |
<title>Mesos build time</title> | |
<script> | |
var kTree = { | |
"data": { | |
"$area": 16345.179000000006, | |
"$dominant_symbol": "node" | |
}, | |
"name": "'everything' 4h32m25.2s", | |
"children": [ |
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
#include <type_traits> | |
using std::is_callable_v; | |
template <typename Fn, typename A> constexpr auto bind(Fn fn, A &&a) noexcept { | |
return [fn, a](auto &&... args) { return fn(a, args...); }; | |
} | |
int main() { | |
constexpr auto b0 = bind([]() {}, 4); |
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 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/sh | |
set -e | |
set -o pipefail | |
readonly MESOS_DIR="$(git rev-parse --show-toplevel)" | |
# shellcheck source=atexit.sh | |
. "$MESOS_DIR"/support/atexit.sh |
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 python3 | |
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at |
OlderNewer