Skip to content

Instantly share code, notes, and snippets.

@mtth
mtth / index.js
Created March 17, 2019 19:17
Rollup `@avro/types`
/** The most minimal module possible. */
'use strict';
module.exports = require('@avro/types');
@mtth
mtth / promisified.js
Last active January 23, 2017 03:51
Promisified Avro service API
/* jshint esversion: 6, node: true */
'use strict';
/** Sample code using the promisified service API. */
const avro = require('avsc');
const promisify = require('./promisify'); // See file below.
// A sample service with a single message. Note that this message's error type
" Syntax file for Avro IDL files.
if exists('b:current_syntax')
finish
endif
syn case match
" Delegate to JSON syntax highlighting for defaults.
syn include @json syntax/json.vim
@mtth
mtth / restli-encode.py
Last active September 26, 2022 07:01
Rest.li encode: a simpler way to encode Rest.Li query parameters.
#!/usr/bin/env python
# encoding: utf-8
"""Rest.li encode: a simpler way to encode Rest.Li query parameters.
Usage:
restli-encode.py [JSON]
Arguments:
JSON JSON string. Will read stdin if unspecified.
@mtth
mtth / keybase.md
Last active March 23, 2019 15:28
Keybase proof

Keybase proof

I hereby claim:

  • I am mtth on github.
  • I am mtth (https://keybase.io/mtth) on keybase.
  • I have a public key whose fingerprint is 5E58 F75A 5DA4 4C4B CD67 13A0 7800 266D A107 476A

To claim this, I am signing this object:

@mtth
mtth / Mail.avpr
Created February 26, 2016 15:45
Avro RPC
{
"protocol": "Mail",
"namespace": "example.proto",
"doc": "From https://github.com/phunt/avro-rpc-quickstart/blob/master/src/main/avro/mail.avpr",
"types": [
{
"name": "Message",
"type": "record",
"fields": [
{
@mtth
mtth / README.md
Last active April 15, 2016 14:35
Avro meta type

An Avro schema to describe Avro schemas.

@mtth
mtth / README.md
Last active January 30, 2016 21:46
Avro error hooks
@mtth
mtth / README.md
Last active July 19, 2018 02:51
Avro type hooks
@mtth
mtth / README.md
Last active August 9, 2023 20:59
Avro logical types