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
PC=0x18d6b05cc m=0 sigcode=0 | |
goroutine 0 gp=0x100789720 m=0 mp=0x10078a160 [idle]: | |
SIGQUIT: quit | |
SIGQUIT: quitPC= | |
0x18d6b05cc m=runtime.pthread_cond_wait0( sigcode=0 | |
0x10078a6a0 | |
, 0x10078a660goroutine 0 gp=0x107440020PC=0x18d6b9304) | |
m=0 sigcode=0 | |
m=0 mp=0x1074422c0 [idle]: |
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("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files") | |
load("@bazel_skylib//lib:paths.bzl", "paths") | |
load("@io_bazel_rules_go//go:def.bzl", "gomock") | |
_MOCKGEN_TOOL = Label("@org_uber_go_mock//mockgen") | |
_MOCKGEN_MODEL_LIB = Label("@org_uber_go_mock//mockgen/model") | |
def go_mock(name, deps, interfaces = [], **kwargs): | |
""" | |
Macro to create a Go mock of a given interface(s) and copy the file back |
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
diff --git a/internal_setup.bzl b/internal_setup.bzl | |
index a80099f..56eb486 100644 | |
--- a/internal_setup.bzl | |
+++ b/internal_setup.bzl | |
@@ -21,7 +21,7 @@ load("@rules_bazel_integration_test//bazel_integration_test:deps.bzl", "bazel_in | |
load("@rules_bazel_integration_test//bazel_integration_test:repo_defs.bzl", "bazel_binaries") | |
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") | |
load("//:version.bzl", "SUPPORTED_BAZEL_VERSIONS") | |
-load("//python/pip_install:repositories.bzl", "pip_install_dependencies") | |
+load("//python/pip_install:repositories.bzl", "pip_install_dependencies", "uv_dependencies") |
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 inspect | |
import itertools | |
from python.nplusone.core import signals | |
from sqlalchemy.engine import ScalarResult | |
from sqlalchemy.orm import attributes, loading, query, strategies | |
def to_key(instance): | |
model = type(instance) |
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
pkg_tar( | |
name = "interpreter", | |
srcs = [ | |
"@python3_9//:files", | |
], | |
mode = "0644", | |
package_dir = "/usr/local/python", | |
strip_prefix = ".", | |
) |
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
gunicorn_binary( | |
name = "hello", | |
args = ["hello:app"], | |
deps = [ | |
"@pypi_flask//:pkg", | |
], | |
) |
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
name: "Terraform" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- terraform/** | |
pull_request: | |
branches: | |
- main |
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
SELECT | |
FORMAT_DATE('%F', d) as id, | |
d AS full_date, | |
EXTRACT(YEAR FROM d) AS year, | |
EXTRACT(WEEK FROM d) AS year_week, | |
EXTRACT(DAY FROM d) AS year_day, | |
EXTRACT(YEAR FROM d) AS fiscal_year, | |
FORMAT_DATE('%Q', d) as fiscal_qtr, | |
EXTRACT(MONTH FROM d) AS month, | |
FORMAT_DATE('%B', d) as month_name, |
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
SELECT repo.name, JSON_EXTRACT(payload, '$.issue.number') as issue_id, COUNT(*) as count, JSON_EXTRACT(payload, '$.issue.title') as title | |
FROM `githubarchive.month.*` | |
WHERE type = 'IssueCommentEvent' | |
and repo.name = 'angular/angular' | |
and (_TABLE_SUFFIX like '2019%' or _TABLE_SUFFIX like '2018%' or _TABLE_SUFFIX like '2017%') | |
GROUP BY repo.name, issue_id, title | |
ORDER BY count desc |
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 | |
""" | |
Requirements: | |
pip install requests python-dateutil | |
""" | |
import dateutil.parser as dp | |
import csv | |
import sys | |
from optparse import OptionParser |
NewerOlder