Skip to content

Instantly share code, notes, and snippets.

View akshayjshah's full-sized avatar

Akshay Shah akshayjshah

View GitHub Profile
@akshayjshah
akshayjshah / protocol.md
Created October 20, 2022 18:02
Connect Protocol Specification

Connect Protocol Reference

This document specifies the Connect protocol for making RPCs over HTTP. The protocol does not depend on framing details specific to a particular HTTP version.

Rules use ABNF syntax, but the design goals and summary are approachable for casual readers. There are also examples of unary and streaming RPCs.

@akshayjshah
akshayjshah / knights.py
Last active August 29, 2015 14:00
Knights Code
import functools
moves = {
0: [4, 6],
1: [6, 8],
2: [7, 9],
3: [4, 8],
4: [0, 3, 9],
5: [],
@akshayjshah
akshayjshah / github_archive_query.sql
Last active February 23, 2021 09:30
Calculate and plot correlations between the most popular languages on GitHub.
/* Fetch data from GitHub Archive using Google's BigQuery */
select actor, repository_language, count(repository_language) as pushes
from [githubarchive:github.timeline]
where type='PushEvent'
and repository_language != ''
and PARSE_UTC_USEC(created_at) >= PARSE_UTC_USEC('2012-01-01 00:00:00')
and PARSE_UTC_USEC(created_at) < PARSE_UTC_USEC('2013-01-01 00:00:00')
group by actor, repository_language;