Skip to content

Instantly share code, notes, and snippets.

View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC4XB5zkvkyXVHYgd/g3a/x9c2aio7i37jlynPTP69lfWIKtozSgrpOjVtCfiHhcsVBNagM1dCy/QxoFWyPYlebxJ+a2lXWqO9J4bITXUEPMFj+PTe/yCFV9ArLWS6oBto9GimKXS8CNqiJythSjqezn9xwscNfONK7otSd6g+zSF7+CN1gim4KlIdi6uE81j9xmhAUcOnWbxKgY+pt8O7m6px2uM/NYk+Z1n2dhlcPvAmv4Ctvu0lantbSgDu+wQEuH6WliF4LOqb3y+o6QH48OnR0HZ9mopIs5ty7F6C2p1XNeLgU+L0PLx132x2rS3g0dUn3gz7A2EnQaomzT3GPHbVWdfkHI3Grl4gWmed+rTPU6eYiwT4UW7Rztv6MgZKMQ+bxfQ5x6AkIpMAGsNuZOj4nNGhBAonDXpBFmrLTdvHOBRpATEneKc4pBMyspjhCnZ7a8luCWU++W7QfX0NoaaqPasqGlIKeYhMrzNPigQMXIrwMCvKIIPwxta4lZT7DIjCqbtw4Lgzx1uD0CwHhOMvVaVnhww8H71dZMHIFy0ak030bRz11HN2K44zgQFIW6/OHcUji8hWknb5MNy6YDGQbBGHa4t9z2bEaDpGLaSNW1/gwgIZ9J5A7dRuwtMuj2GHJrO5kfu6/90s/+ZsSgoSWemoNQwEj+a1dMCRjLQ== kristina@flip.lease
View BUILD
load('//:dark-underbelly.bzl', 'du')
du(name = "whatever")
load('//:very-dark-underbelly.bzl', 'vdu')
vdu(
name = "dark-whatever",
one_result = "foo"
)
View BUILD
load("//:fun-with-outputs.bzl", "my_rule")
my_rule(
name = "foo",
many_results = [
"212",
"917",
"646",
],
one_result = "brooklyn",
@kchodorow
kchodorow / BUILD
Created Mar 31, 2017
Skylark rule with output
View BUILD
load("//:output.bzl", "my_rule")
my_rule(name = "foo")
@kchodorow
kchodorow / BUILD
Created Mar 29, 2017
Simple rule example
View BUILD
load('//bazel:my-first-rule.bzl', 'my_rule')
my_rule(name = 'whatever')
@kchodorow
kchodorow / BUILD
Last active Apr 3, 2017
load() example
View BUILD
load('//:my-first-extension.bzl', 'greeting')
greeting()
View .emacs
(setq-default indent-tabs-mode nil)
(setq column-number-mode t)
(custom-set-variables
'(js2-global-externs (quote ("goog"))))
(add-hook 'js2-post-parse-callbacks
(lambda ()
(let ((buf (buffer-string))
(index 0))
(while (string-match "\\(goog\\.require\\|goog\\.provide\\)('\\([^'.]*\\)" buf index)
(setq index (+ 1 (match-end 0)))
View BUILD
load("//:tester.bzl", "greet")
greet(
name = "a-greeting",
my_name = "kristina",
)
@kchodorow
kchodorow / fix_workspace.py
Last active Feb 5, 2016
Replaces illegal repository names with legal ones.
View fix_workspace.py
#!/usr/bin/env python
#
# Copyright 2016 The Bazel Authors. All arights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@kchodorow
kchodorow / deps.sh
Created Dec 24, 2015
Setup a directory for making a game with Phaser.io, Closure, and Git
View deps.sh
#!/bin/bash
set -e
js/closure-library/closure/bin/build/depswriter.py --root_with_prefix='. ../../../..' > deps.js
cat deps.js