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 main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "strconv" | |
| "strings" | |
| ) |
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
| """ | |
| This is an implmentation of a Continuous Perceptron trained using Delta Learning Rule or Backpropagation. | |
| It is based on the description of the same as given in the book - | |
| 'Introduction to Artificial Neural Networks' by Jackek M. Zurada | |
| Date: July 16, 2018 | |
| Author: Pranav Gajjewar | |
| Course: Artifical Neural Networks | |
| The following work was done while studying as an undergraduate at SGGSIE&T, Nanded. |
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
| syntax = "proto3"; | |
| message Request { | |
| string text = 1; | |
| } | |
| message Response { | |
| repeated string keywords = 1; | |
| } |
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
| from nltk_service_pb2 import * | |
| from nltk_service_pb2_grpc import * | |
| import grpc | |
| import nltk | |
| from concurrent import futures | |
| from nltk.corpus import stopwords | |
| class NltkService(KeywordServiceServicer): |
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
| def serve(port): | |
| server = grpc.server(futures.ThreadPoolExecutor(max_workers=10)) | |
| add_KeywordServiceServicer_to_server( | |
| NltkService(), server) | |
| server.add_insecure_port('[::]:' + str(port)) | |
| server.start() | |
| print("Listening on port {}..".format(port)) | |
| try: | |
| while True: | |
| time.sleep(10000) |
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
| # For Python | |
| python -m grpc_tools.protoc -I. --python_out=./python --grpc_python_out=./python nltk_service.proto | |
| # For Golang | |
| protoc -I. nltk_service.proto --go_out=plugins=grpc:golang |
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 main | |
| import ( | |
| "context" | |
| "google.golang.org/grpc" | |
| "fmt" | |
| "bufio" | |
| "os" | |
| nltk "golang/nltk_service" | |
| ) |
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
| func main() { | |
| client, err := InitGrpcConnection() | |
| if err != nil { | |
| fmt.Println(err) | |
| os.Exit(0) | |
| } | |
| reader := bufio.NewReader(os.Stdin) | |
| for { |
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
| #!/Users/pranav/.pyenv/shims/python | |
| """ | |
| Requirements: | |
| - Python3 | |
| PIP Install: | |
| - bs4 | |
| - requests | |
| - lxml | |
| What? |
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
| # Prevent Trackers and Malwares | |
| https://raw.githubusercontent.com/DRSDavidSoft/additional-hosts/master/domains/blacklist/adservers-and-trackers.txt | |
| https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt | |
| https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt | |
| https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt | |
| https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt | |
| https://gitlab.com/my-privacy-dns/matrix/matrix/-/raw/master/source/tracking/domains.list | |
| https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardApps.txt | |
| https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileAds.txt | |
| https://raw.githubusercontent.com/FadeMind/hosts.extras/master/StreamingAds/hosts |
OlderNewer