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
To set up the Go repo | |
git clone https://go.googlesource.com/go | |
cd go | |
git checkout dev.typeparams | |
cd src | |
./make.bash | |
Use that directory with go_local_sdk in WORKSPACE. |
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 * as vscode from 'vscode'; | |
export async function quickPickItem(items: string[]): Promise<string[]> { | |
const options = items.map(item => ({ label: item })); | |
return new Promise((resolve, _) => { | |
const quickPick = vscode.window.createQuickPick(); | |
const placeholder = "Select a item."; | |
quickPick.placeholder = placeholder; |
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
#define _GNU_SOURCE | |
#include <errno.h> | |
#include <sched.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mount.h> | |
#include <sys/stat.h> | |
#include <sys/syscall.h> | |
#include <sys/types.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 grpc | |
import time | |
import helloworld_pb2 | |
import helloworld_pb2_grpc | |
def run(): | |
channel_opts = [ | |
( | |
# Interval at which grpc will send keepalive pings | |
'grpc.keepalive_time_ms', |
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
#!/usr/bin/env python3 | |
"""Script for analyzing raw data `bazel analyze-profile --dump=raw` | |
Usage: | |
First obtain the raw profile data of your build. | |
$ bazel build --profile=my_profile.dat //some:target | |
$ bazel analyze-profile my_profile.dat --dump=raw > my_profile.raw |
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 url('https://fonts.googleapis.com/css?family=Montserrat'); | |
@import url('https://fonts.googleapis.com/css?family=Inconsolata'); | |
@media screen { | |
/* Framework */ | |
html { | |
height: 100%; | |
} |
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
load("@io_bazel_rules_go//go:def.bzl", "go_path") | |
load("@io_bazel_rules_go//go/private:providers.bzl", "GoLibrary", "GoPath") | |
_MOCKGEN_TOOL = "@com_github_golang_mock//mockgen" | |
def _gomock_sh_impl(ctx): | |
go_toolchain = ctx.toolchains["@io_bazel_rules_go//go:toolchain"] | |
gopath = "$(pwd)/" + ctx.var["BINDIR"] + "/" + ctx.attr.gopath_dep[GoPath].gopath |
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 | |
# update this to move to later versions of this repo: | |
# https://github.com/bazelbuild/bazel | |
ORIGINAL_PWD=$PWD | |
TMPDIR="${TMPDIR:-/tmp}" | |
RND_UID=$(date "+%s") |
NewerOlder