Skip to content

Instantly share code, notes, and snippets.

  1. Open Terminal (cmd + spacebar; search for Terminal).
  2. Move to the directory where you keep these files:
    cd ~/Desktop/[folder name]
    
  3. Check to make sure all of the file you're changing show up:
    git status
    
  4. If they are, you want to add them to staging:
seanloiselle:...b.com/cockroachdb/cockroach]$ make (more-metric-metadata✱)
GOPATH set to /Users/seanloiselle/go
Running make with -j8
rm -rf /Users/seanloiselle/go/native/x86_64-apple-darwin16.7.0/jemalloc
rm -rf /Users/seanloiselle/go/native/x86_64-apple-darwin16.7.0/protobuf
mkdir -p /Users/seanloiselle/go/native/x86_64-apple-darwin16.7.0/jemalloc
rm -rf /Users/seanloiselle/go/native/x86_64-apple-darwin16.7.0/snappy
mkdir -p /Users/seanloiselle/go/native/x86_64-apple-darwin16.7.0/protobuf
rm -rf /Users/seanloiselle/go/native/x86_64-apple-darwin16.7.0/cryptopp
mkdir -p /Users/seanloiselle/go/native/x86_64-apple-darwin16.7.0/cryptopp

In attendance: Amruta, Lauren, Sean

Problem

Lots of negative votes on current docs home page

Solution

Workflow-topic based content - Fulfill user's intent "ISBAT"

-- Invariants:
-- * Each run is only ever used on one cloud
-- * Each run only ever uses one version of Cockroach
CREATE TABLE runs (
id INT8 PRIMARY KEY,
crdb_version STRING DEFAULT 'master',
INDEX (cloud) COVERING id, -- Get all runs by cloud
INDEX (crdb_version) COVERING id -- Get all runs by version; e.g. roachperf wants master but SE tools want specific version
);
@sploiselle
sploiselle / decimal-single-pass.rs
Created December 12, 2019 18:23
Parsing a string as a decimal in a single pass with a lot of if statements
for c in s.chars() {
if c == '.' {
if seen_decimal {
bail!("multiple decimal points in numeric literal: {}", s)
}
seen_decimal = true;
continue;
}
if c == '-' {
if seen_e_notation {

You can start the materialized binary with:

./materialized_(linux|mac) --dev --w=1

And then launch into the SQL interface (e.g. psql -h 0.0.0.0 -p 6875 -d materialize)