Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| use std::ptr; | |
| /* | |
| Experiments in recovering coverage from the sanitizer runtime. Build with cargo, adding: | |
| RUSTFLAGS="-C passes=sancov -C llvm-args=-sanitizer-coverage-level=3 -Z sanitizer=address -C opt-level=3 -C debug-assertions=on -C debuginfo=2" | |
| */ | |
| extern "C" { | |
| pub fn __sanitizer_cov_init(); | |
| pub fn __sanitizer_cov_dump(); | |
| pub fn __sanitizer_dump_coverage(pcs: *const usize, len: usize); | |
| pub fn __sanitizer_maybe_open_cov_file(name: |
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
| # From https://arxiv.org/abs/1210.0481 | |
| digraph G { | |
| rankdir=LR; | |
| subgraph cluster_relations { | |
| R [group="R"]; | |
| S [group="S"]; | |
| T [group="T"]; | |
| label = "relations"; |
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
| s!\$C\$!,!g; | |
| s!\$SP\$!@!g; | |
| s!\$BP\$!*!g; | |
| s!\$RF\$!\&!g; | |
| s!\$LT\$!<!g; | |
| s!\$GT\$!>!g; | |
| s!\$LP\$!(!g; | |
| s!\$RP\$!)!g; | |
| s!\$u20\$! !g; | |
| s!\$u27\$!'!g; |
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 std::ops::Deref; | |
| use std::rc::Rc; | |
| use std::sync::Arc; | |
| trait Ptr<T> { | |
| type PT : Deref<Target=T>; | |
| fn build(val:T) -> Self::PT; | |
| } | |
| #[derive(Debug)] |
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
| digraph spacetime { | |
| rankdir=TD | |
| splines=line | |
| // outputorder=nodesfirst | |
| subgraph cluster_proc_nodes { | |
| label=""; | |
| proc_a [label="Process a",group="a"]; | |
| proc_b [label="Process b",group="b"]; | |
| } |
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 os, sys | |
| from pygit2 import Repository, GIT_SORT_TOPOLOGICAL, GIT_SORT_REVERSE | |
| import pygit2 | |
| from graphviz import Digraph | |
| repository_path = pygit2.discover_repository(os.getcwd()) | |
| repo = Repository(repository_path) | |
| def nfmt(target): | |
| return "N{0}".format(target.id) |
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
| Adapted for 256 color terminals from the 24-bit colour version at https://git.gnome.org/browse/vte/tree/perf/img.sh?h=vte-0-36 . | |
| Original script (and this adaptation) licensed under GPLv2. | |
| Octocat image used under presumed license from https://octodex.github.com/faq.html |
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
| PATH := ./foo:$(PATH) | |
| export PATH | |
| foo: | |
| mkdir -vp $@ | |
| foo/bar: foo | |
| printf "#!/bin/echo Hello\n" > [email protected] && chmod +x [email protected] && mv -v [email protected] $@ | |
| runit_okay: foo/bar |
NewerOlder