Skip to content

Instantly share code, notes, and snippets.

@pkaminski
pkaminski / style.css
Last active April 21, 2023 04:08
Stylesheet to remove filter from dashboard author avatars in Reviewable
.open.reviews td.summary .author.avatar.image {
filter: none;
}
import {_Entity, Component, ComponentConstructor, PropType, Types, World} from 'ecsy';
type BuiltinPropTypes =
typeof Number | typeof Boolean | typeof String | typeof Array | typeof Object; // you can add more
interface Typed<T, D> {
type: PropType<T, D>;
}
interface PropOptions<T, D> {
/* Add line numbers to reviewable. */
div[data-line-number]:not([data-line-number="0"]):before {
content:attr(data-line-number);
position:absolute;
color: #444;
padding: 1px 3px 3px;
font-size: x-small;
display: block;
width: 20px;
text-align: right;
@pkaminski
pkaminski / bindings.json
Last active June 1, 2016 20:29
Reviewable keyboard bindings
[
["f", "Show next/latest diffs", "setProposedRevRanges()"],
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
["shift+n", "Next changed file", "nextChangedFile()"],
["shift+p", "Previous changed file", "prevChangedFile()"],
[null, "Next visible file", "nextVisibleFile()"],
[null, "Previous visible file", "prevVisibleFile()"],
[null, "Next file", "nextFile()"],
.two.column.diff .diff.line:not(.keep) .line.wrapper:not(.empty) .left.line.content {
background-color: #FBDDDD; /* rgba(91, 220, 114, 0.20) on white */
}
.two.column.diff .diff.line.base:not(.keep) .line.wrapper:not(.empty) .left.line.content,
.two.column.diff .diff.line.whitespace:not(.keep) .line.wrapper:not(.empty) .left.line.content {
background-color: #FFF7F7; /* rgba(91, 220, 114, 0.05) on white */
}
.two.column.diff .diff.line:not(.keep) .line.wrapper:not(.empty) .right.line.content {
background-color: #DDF7E2; /* rgba(91, 220, 114, 0.20) on white */
@pkaminski
pkaminski / gist:6c111a29712845f4dc90
Last active August 29, 2015 14:26
Output of `gcloud preview app deploy app.yaml --remote --version $BUILD_GROUP_NUMBER --force --set-default --verbosity debug`
Branch: release; pull request: false; build: 586
Deploying server...
DEBUG: Running gcloud.preview.app.deploy with Namespace(__calliope_internal_deepest_parser=ArgumentParser(prog='gcloud.preview.app.deploy', usage=None, description="*(BETA)* This command is used to deploy both code and configuration to the App Engine\nserver. As an input it takes one or more ``DEPLOYABLES'' that should be\nuploaded. A ``DEPLOYABLE'' can be a module's .yaml file or a configuration's\n.yaml file.", version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=False), bucket=None, cmd_func=<bound method Command.Run of <googlecloudsdk.calliope.backend.Command object at 0x7f3124024590>>, command_path=['gcloud', 'preview', 'app', 'deploy'], deployables=['app.yaml'], document=None, env_vars=None, force=True, format=None, h=None, help=None, http_timeout=None, log_http=None, markdown=None, project=None, quiet=None, remote=True, server=None, set_default=True, trace_token=None, user_output_enabled=N
@pkaminski
pkaminski / custom.css
Last active August 29, 2015 14:21
Square off file tabs and remove torn edges
.file.title {
border-left: 1px solid #e6e6e6;
border-right: 1px solid #e6e6e6;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding-top: 0.5em;
bottom: -3px;
}
.file.left.filler {
@pkaminski
pkaminski / custom.css
Created March 6, 2015 03:30
Remove torn edges
.torn.edge {
display: none;
}
@pkaminski
pkaminski / custom.css
Last active August 29, 2015 14:14
Highlight edited lines in Reviewable two-column view
.two.column.diff .diff.line.edit .left.line.wrapper {
background-color: rgba(240, 92, 92, 0.15);
}
.two.column.diff .diff.line.edit .right.line.wrapper {
background-color: rgba(91, 220, 114, 0.15);
}
@pkaminski
pkaminski / gist:1ea3df5301660ddc5b12
Last active September 17, 2019 09:37
Custom key bindings for Reviewable
[
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
["shift+n", "Next file", "nextFile()"],
["shift+p", "Previous file", "prevFile()"],
["x", "Mark file as reviewed / unreviewed", "toggleCurrentFileReviewed(); nextUnreviewedFile()"],
["j", "Next unreplied comment", "nextUnrepliedDiscussion()"],
["k", "Previous unreplied comment", "prevUnrepliedDiscussion()"],
["shift+j", "Next comment", "nextDiscussion()"],
["shift+k", "Previous comment", "prevDiscussion()"],