bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
| // Creates a new promise that automatically resolves after some timeout: | |
| Promise.delay = function (time) { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(resolve, time) | |
| }) | |
| } | |
| // Throttle this promise to resolve no faster than the specified time: | |
| Promise.prototype.takeAtLeast = function (time) { | |
| return new Promise((resolve, reject) => { |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
| <?php | |
| namespace App\Traits; | |
| use Exception; | |
| use Illuminate\Database\Eloquent\Builder; | |
| /** | |
| * Use this trait if your model has a composite primary key. | |
| * The primary key should then be an array with all applicable columns. |
| import $ from 'jquery'; | |
| import plugin from './plugin'; | |
| class ScrollToTop { | |
| constructor(element, options) { | |
| const $element = $(element); | |
| $(window).scroll(function () { | |
| if ($(this).scrollTop() > options.offset) { | |
| $element.fadeIn(); |
| <?php | |
| namespace Tests\Api; | |
| use App\User; | |
| use Tests\TestCase as BaseTestCase; | |
| use Illuminate\Contracts\Auth\Authenticatable as UserContract; | |
| class TestCase extends BaseTestCase | |
| { |
##Sass Functions Cheat Sheet
| <?php | |
| class ExampleTest extends TestCase { | |
| public function setUp() | |
| { | |
| parent::setUp(); | |
| DB::beginTransaction(); | |
| } |
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <[email protected]> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); |
| // UMD dance - https://github.com/umdjs/umd | |
| !function(root, factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| define(['jquery'], factory); | |
| } else { | |
| factory(root.jQuery); | |
| } | |
| }(this, function($) { | |
| 'use strict'; |