Skip to content

Instantly share code, notes, and snippets.

View pb.gw.go.diff
diff --git i/.gitattributes w/.gitattributes
index 1c8136ec7b..931707fe43 100644
--- i/.gitattributes
+++ w/.gitattributes
@@ -1,2 +1 @@
-*.pb.* -diff
*.eg.go -diff
diff --git i/pkg/server/serverpb/admin.pb.gw.go w/pkg/server/serverpb/admin.pb.gw.go
index 318569f9f9..0d62070545 100644
--- i/pkg/server/serverpb/admin.pb.gw.go
View errant-system.namespace.log
I200720 21:13:22.954399 1 util/log/sync_buffer.go:70 [config] file created at: 2020/07/20 21:13:22
I200720 21:13:22.954399 1 util/log/sync_buffer.go:70 [config] running on machine: Irfans-MacBook-Pro
I200720 21:13:22.954399 1 util/log/sync_buffer.go:70 [config] binary: CockroachDB CCL v20.1.3 (x86_64-apple-darwin14, built 2020/06/23 08:38:34, go1.13.9)
I200720 21:13:22.954399 1 util/log/sync_buffer.go:70 [config] arguments: [/Users/irfansharif/local/2/cockroach-20.1.3 start --insecure --store=path=/Users/irfansharif/local/2/data --log-dir=/Users/irfansharif/local/2/logs --cache=6% --max-sql-memory=6% --listen-addr=127.0.0.1 --port=26259 --http-port=26260 --locality=region=local,zone=local --join=127.0.0.1:26257]
I200720 21:13:22.954399 1 util/log/sync_buffer.go:70 line format: [IWEF]yymmdd hh:mm:ss.uuuuuu goid file:line msg utf8=✓
I200720 21:13:22.954397 1 cli/start.go:1223 logging to directory /Users/irfansharif/local/2/logs
W200720 21:13:22.954924 1 cli/start.go:1272 RUNNING IN INSECURE MODE!
- Your
View build.log
$ git show HEAD
commit 49339fef48f4165a4e7471290bb08d422cf835a9 (HEAD -> master, upstream/staging, upstream/master, origin/master)
Merge: 0c2f0d2a64 fcb4a0102e
Author: craig[bot] <bors@cockroachlabs.com>
Date: Thu Jun 11 04:08:00 2020 +0000
Merge #50016
50016: importccl: Improve PGCOPY import peformance by using parallelImporter r=miretskiy a=adityamaru
View benchmark_rocksdb_test.go
func BenchmarkBatchCommitInterleaved(b *testing.B) {
for _, valueSize := range []int{1 << 10, 1 << 12, 1 << 14, 1 << 16, 1 << 18, 1 << 20} {
b.Run(fmt.Sprintf("vs=%d", valueSize), func(b *testing.B) {
rng, _ := randutil.NewPseudoRand()
value := roachpb.MakeValueFromBytes(randutil.RandBytes(rng, valueSize))
keyBuf := append(make([]byte, 0, 64), []byte("key-")...)
b.SetBytes(int64(valueSize))
engA := setupMVCCRocksDB(b, fmt.Sprintf("batch_commit_interleaved_%d_a", valueSize))
defer func() {
View benchmark_rocksdb_test.go
func BenchmarkBatchCommitSameEng(b *testing.B) {
for _, valueSize := range []int{1 << 10, 1 << 12, 1 << 14, 1 << 16, 1 << 18, 1 << 20} {
b.Run(fmt.Sprintf("vs=%d", valueSize), func(b *testing.B) {
rng, _ := randutil.NewPseudoRand()
value := roachpb.MakeValueFromBytes(randutil.RandBytes(rng, valueSize))
keyBuf := append(make([]byte, 0, 64), []byte("key-")...)
eng := setupMVCCRocksDB(b, fmt.Sprintf("batch_commit_same_%d", valueSize))
defer func() {
if err := os.RemoveAll(fmt.Sprintf("batch_commit_same_%d", valueSize)); err != nil {
b.Fatal(err)
View keybase.md

Keybase proof

I hereby claim:

  • I am irfansharif on github.
  • I am irfansharif (https://keybase.io/irfansharif) on keybase.
  • I have a public key whose fingerprint is D9D6 604F EFAB 8EC1 7052 3C9C 204F 7D6C 3D8F A045

To claim this, I am signing this object:

View xor-training.rb
@dataset = [
{ input: { a: 0, b: 0 }, output: { o: 0 } },
{ input: { a: 0, b: 1 }, output: { o: 1 } },
{ input: { a: 1, b: 0 }, output: { o: 1 } },
{ input: { a: 1, b: 1 }, output: { o: 0 } }
]
@network = Cerebrum.new
@network.train(@dataset)
View peano.js
var add_one = function ( n ) {
return n + 1;
}
var subtract_one = function ( n ) {
return n - 1;
}
var sum = function ( a, b ) {
if (b === 0) {
View shopicruit.js
var request = require('request'),
url = 'http://shopicruit.myshopify.com/products.json',
cost = 0
function main() {
request(url, function(err, res, body) {
if(!err && res.statusCode == 200) {
var products = JSON.parse(body).products
products.forEach(function(product) {
if(isWallet(product) || isLamp(product)) {