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
namespace { | |
// Helper struct for manually walking the stack using stack frame pointers | |
struct StackFrame { | |
StackFrame* parentFrame; | |
void* returnAddress; | |
}; | |
size_t walkNormalStack( | |
uintptr_t* addresses, | |
size_t maxAddresses, |
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/bash -ex | |
CONTENTS=$(cat <<EOF | |
foo | |
bar | |
baz | |
EOF | |
) | |
sudo echo "$CONTENTS" > /tmp/my_file.txt |
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
diff --git a/folly/folly/experimental/coro/Task.h b/folly/folly/experimental/coro/Task.h | |
--- a/folly/folly/experimental/coro/Task.h | |
+++ b/folly/folly/experimental/coro/Task.h | |
@@ -43,13 +43,37 @@ | |
#include <folly/futures/Future.h> | |
#include <folly/io/async/Request.h> | |
#include <folly/lang/Assume.h> | |
+#include <folly/synchronization/SanitizeThread.h> | |
#include <folly/tracing/AsyncStack.h> | |
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 random | |
from collections import deque | |
from dataclasses import dataclass | |
# Key is hour number | |
# 0 == midnight | |
# 1 == 1am, etc. | |
NUM_PATIENTS_PER_HOUR = { | |
4: 2, | |
5: 11, |
OlderNewer