This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.2' | |
services: | |
es01: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.4 | |
container_name: es01 | |
environment: | |
- node.name=es01 | |
- cluster.name=es-docker-cluster | |
- discovery.seed_hosts=es02,es03 | |
- cluster.initial_master_nodes=es01,es02,es03 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.techwasti.kafkaex; | |
import io.micronaut.configuration.kafka.annotation.KafkaKey; | |
import io.micronaut.configuration.kafka.annotation.KafkaListener; | |
import io.micronaut.configuration.kafka.annotation.Topic; | |
import io.micronaut.configuration.kafka.annotation.OffsetReset; | |
@KafkaListener(offsetReset = OffsetReset.EARLIEST) | |
public class GreetMessageConsumer { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.techwasti.kafkaex; | |
import io.micronaut.configuration.kafka.annotation.KafkaClient; | |
import io.micronaut.configuration.kafka.annotation.KafkaKey; | |
import io.micronaut.configuration.kafka.annotation.Topic; | |
@KafkaClient | |
public interface GreetMessageClient { | |
// greet is a kafka topic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.techwasti.spring.buildpackex.springboot23ocibuildpackex; | |
import java.util.Date; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
@RestController | |
public class CurrentDateController{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#skip if you cask already installed | |
$ brew tap caskroom/cask | |
#install java8 | |
$brew cask install java8 | |
#install kafka along with zookeeper |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Best practices for machine learning project | |
Below are the some genric steps every one has to follow while working on any machine learning project. | |
1. Gathering data | |
2. Preparing that data | |
3. Choosing a model | |
4. Training | |
5. Evaluation | |
6. Hyperparameter tuning | |
7. Prediction. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Google sheet to read last row values and column header and drop a mail. | |
To create script you need to use Tools -->script editor | |
After that you can copy and paste the below script and run it will drop you mail. | |
If you want to create the trigger then create trigger on same script where we can run this script when sheet is | |
updated or same data is updated. | |
To create trigger from script editor you need to navigate to | |
Edit -->Current Project's trigger. | |
##Sample code |
NewerOlder