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 |
| -- Create ksqlDB table from Kafka topic. | |
| CREATE TABLE myTable (username VARCHAR, location VARCHAR) | |
| WITH (KAFKA_TOPIC='input-topic', KEY='username', VALUE_FORMAT='...'); |
| -- Create ksqlDB stream from Kafka topic. | |
| CREATE STREAM myStream (username VARCHAR, location VARCHAR) | |
| WITH (KAFKA_TOPIC='input-topic', VALUE_FORMAT='...'); |
| // Create KStream from Kafka topic. | |
| StreamsBuilder builder = new StreamsBuilder(); | |
| KStream<String, String> stream = | |
| builder.stream("input-topic", Consumed.with(Serdes.String(), Serdes.String())); |
| // Continuously aggregating a KStream into a KTable. | |
| KStream<String, String> locationUpdatesStream = ...; | |
| KTable<String, Long> locationsPerUser | |
| = locationUpdatesStream | |
| .groupBy((k, v) -> v.username) | |
| .count(); |
| -- Continuously aggregating a stream into a table with a ksqlDB push query. | |
| CREATE STREAM locationUpdatesStream ...; | |
| CREATE TABLE locationsPerUser AS | |
| SELECT username, COUNT(*) | |
| FROM locationUpdatesStream | |
| GROUP BY username | |
| EMIT CHANGES; |
| # MidiPipe: http://www.subtlesoft.square7.net/MidiPipe.html | |
| # | |
| # The APC 40 out-of-the-box is great for performing, but less useful for producing because it lacks | |
| # frequently used functionality such as Undo/Redo (doh, made a mistake) or deleting clips, for which | |
| # you are forced to go back to mouse and keyboard. | |
| # | |
| # This example AppleScript shows how to use MidiPipe to re-configure the AKAI APC 40 mk2 MIDI controller | |
| # to execute Undo (Cmd-Z) and Redo (Shift-Cmd-Z) in Ableton Live with the controller's 'NUDGE -' and 'NUDGE +' | |
| # buttons, respectively, instead of nudging the tempo. | |
| # |
| StreamsBuilder#table("my-topic", | |
| Consumed.with(AutoOffsetReset.EARLIEST)); |
| /* | |
| * 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 | |
| * |
# 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"