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
m = require("./objtest2.js"); | |
h = m.hashobj({ | |
name: "Kent", | |
address: "Somewhere in Space and Time", | |
city: "Specificity", | |
state: "CT" | |
}) | |
console.log(h.hash.slice(0, 4)) |
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
################################################################# | |
# Here's a bunch of stuff to do prompts that are sensitive to git and svn | |
# sets the title of the iterm2 window | |
title() | |
{ | |
TITLE=$*; | |
export PROMPT_COMMAND='echo -ne "\033]0;$TITLE\007"' | |
} |
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
################################################################# | |
# keep a permanent history of commands typed across all windows. | |
# This uses the history command to match the part that was typed, | |
# then uses BASH_REMATCH to extract that part and store it in the | |
# .persistent_history file. This is run automatically every time | |
# the prompt is redisplayed. | |
log_bash_persistent_history() { | |
[[ | |
$(history 1) =~ ^[[:space:]]*[0-9]+[[:space:]]+(.*)$ |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
dynsampler "github.com/honeycombio/dynsampler-go" | |
) |
OlderNewer