Skip to content

Instantly share code, notes, and snippets.

Michael G. Noll miguno

Block or report user

Report or block miguno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@miguno
miguno / Mac Keyboard Symbols.md
Created Sep 9, 2019 — forked from Zenexer/Mac Keyboard Symbols.md
List of Mac/Apple keyboard symbols
View Mac Keyboard Symbols.md

Common symbols

Modifiers

When a key combination is displayed, the modifiers are written in the order presented here. For example, Control + Option + Shift + Command + Q would be written as ⌃⌥⇧⌘Q.

Sym Key Alt
Control
Option
View StreamsDSLAndProcessorExample.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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
*
View interactive-queries_song-id.md
# Get all the top-5 charts across all instances
$ http://localhost:7070/kafka-music/song/9
{
  "artist":"N.W.A",
  "album":"Straight Outta Compton",
  "name":"Gangsta Gangsta"
View interactive-queries_top-five-charts-genre.md
# Get all the top-5 charts across all instances
$ http://localhost:7070/kafka-music/charts/genre/punk
[
  {
    "artist":"Wheres The Pope?",
    "album":"PSI",
View interactive-queries_top-five-charts.md
# Get all the top-5 charts across all instances
$ http://localhost:7070/kafka-music/charts/top-five
[
  {
    "artist":"Hilltop Hoods",
    "album":"The Calling",
@miguno
miguno / interactive-queries_app-instances-for-a-store.md List running app instances that currently manage (parts of) state store "top-five-songs"
View interactive-queries_app-instances-for-a-store.md
# List running app instances that currently manage (parts of) state store "top-five-songs"
$ http://localhost:7070/kafka-music/instances/top-five-songs
[
	{
		"host": "localhost",
		"port": 7070,
View interactive-queries_list-app-instances.md
# List all running instances of this application
$ http://localhost:7070/kafka-music/instances
[
	{
		"host": "localhost",
		"port": 7070,
@miguno
miguno / hll.py
Last active Sep 3, 2018
HyperLogLog (HLL) experiments: register bits, register counts, estimation error, error bounds
View hll.py
# Runs HLL experiments, using randomly generated strings as input data.
#
# Requirements
# ============
#
# # https://github.com/ascv/HyperLogLog
# $ pip install HLL
#
#
# How to use
View udaf.java
package com.myorg.ksql.udaf;
import io.confluent.ksql.function.udaf.UdafFactory;
import io.confluent.ksql.function.udf.UdfDescription;
@UdfDescription(name = "totalStringLength", author = "Confluent", version = "1.0")
public class TotalStringLength {
@UdafFactory(description = "sums the length of strings")
public static Udaf<String, Long> createSumLengthString() {
@miguno
miguno / define-a-struct.sql
Last active Jun 27, 2018
Creating a stream with a STRUCT column
View define-a-struct.sql
CREATE STREAM orders (orderid VARCHAR, itemid VARCHAR, address STRUCT<city VARCHAR, state VARCHAR, zicode BIGINT>)
WITH (kafka_topic = 'orders_topic', value_format = 'JSON', key = 'orderId');
You can’t perform that action at this time.