Skip to content

Instantly share code, notes, and snippets.

View maheshwarLigade's full-sized avatar
🐢
Slow To respond

Maheshwar Ligade maheshwarLigade

🐢
Slow To respond
View GitHub Profile
@maheshwarLigade
maheshwarLigade / docker-compose.yml
Created July 26, 2021 04:47
ELK docker compose file, elasticsearch kibana and logstash docker local setup
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
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 {
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
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{
@maheshwarLigade
maheshwarLigade / kafkasetup
Created December 10, 2019 15:39
kafka installation or setup on osx or linux based operating system.
#skip if you cask already installed
$ brew tap caskroom/cask
#install java8
$brew cask install java8
#install kafka along with zookeeper
@maheshwarLigade
maheshwarLigade / PY0101EN-3-2-Loops.ipynb
Created April 19, 2019 10:47
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maheshwarLigade
maheshwarLigade / PY0101EN-3-1-Conditions.ipynb
Created April 19, 2019 10:34
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maheshwarLigade
maheshwarLigade / PY0101EN-1-1-Types.ipynb
Created April 19, 2019 10:33
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
@maheshwarLigade
maheshwarLigade / SendMailScript
Last active March 14, 2017 18:01
GoogleSpreadSheet read data from spreadsheet and send mail.
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