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
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] | |
pub struct ByteVectorEventProtocolMarker; | |
impl fidl::endpoints::ServiceMarker for ByteVectorEventProtocolMarker { | |
type Proxy = ByteVectorEventProtocolProxy; | |
type RequestStream = ByteVectorEventProtocolRequestStream; | |
const DEBUG_NAME: &'static str = "(anonymous) ByteVectorEventProtocol"; | |
} |
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
DURATION_FOR_NOTIFY=10 | |
PROMPT_ID=$RANDOM | |
preexec () { | |
date +%s > /tmp/.time${PROMPT_ID} | |
echo $1 > /tmp/.cmd${PROMPT_ID} | |
} | |
postexec() { | |
OLD_TS=$(cat /tmp/.time${PROMPT_ID}) | |
if [[ OLD_TS -eq "" ]]; then | |
return |
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
/* See LICENSE file for copyright and license details. */ | |
/* appearance */ | |
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*"; | |
static const char normbordercolor[] = "#444444"; | |
static const char normbgcolor[] = "#222222"; | |
static const char normfgcolor[] = "#bbbbbb"; | |
static const char selbordercolor[] = "#005577"; | |
static const char selbgcolor[] = "#005577"; | |
static const char selfgcolor[] = "#eeeeee"; |
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
package vdl | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
) | |
func encoderDebugMsg(method string, depth int, args ...interface{}) { | |
argStrs := make([]string, len(args)) |
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
package vdl | |
import ( | |
"fmt" | |
"strings" | |
) | |
type DebugDecoder struct { | |
Depth int | |
Prefix string |
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
package vom | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
"v.io/v23/vdl" | |
) | |
func targetDebugMsg(method string, depth int, args ...interface{}) { |
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 | |
# sudo apt-get install cpufrequtils | |
sudo cpufreq-set -c 0 -g ondemand | |
sudo cpufreq-set -c 1 -g ondemand | |
sudo cpufreq-set -c 2 -g ondemand | |
sudo cpufreq-set -c 3 -g ondemand | |
sudo cpufreq-set -c 4 -g ondemand | |
sudo cpufreq-set -c 5 -g ondemand |
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 | |
# sudo apt-get install cpufrequtils | |
sudo cpufreq-set -c 0 -g performance | |
sudo cpufreq-set -c 1 -g performance | |
sudo cpufreq-set -c 2 -g performance | |
sudo cpufreq-set -c 3 -g performance | |
sudo cpufreq-set -c 4 -g performance | |
sudo cpufreq-set -c 5 -g performance |
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
func diffLines(a, b string) { | |
fmt.Printf("len(a) %d len(b) %d\n", len(a), len(b)) | |
sa := bufio.NewScanner(strings.NewReader(a)) | |
sb := bufio.NewScanner(strings.NewReader(b)) | |
index := 0 | |
for { | |
index++ | |
var readSomething bool | |
var aline string |
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
function buildValMap(obj, m) { | |
if (typeof obj !== 'object' || obj === null) { | |
return ''; | |
} | |
if (obj === Object.prototype || obj === Array.prototype) { | |
return ''; | |
} | |
if (m.has(obj)) { | |
return ''; | |
} |
NewerOlder