Skip to content

Instantly share code, notes, and snippets.

View codinnvrends's full-sized avatar
🏠
Working from home

codinnvrends

🏠
Working from home
View GitHub Profile
>> Free NLP Course from Huggingface
https://huggingface.co/learn/nlp-course/en/chapter1/1
>> LLMs from Huggingface
https://huggingface.co/docs/transformers/en/llm_tutorial
>> A Data Science Practitioner’s Guide - This is 3 part blog which talks about ideation, modeling and deployment
https://medium.com/geekculture/a-data-science-practitioners-guide-f459eb915b5a
>> Data science in action - Customer churn prediction
@codinnvrends
codinnvrends / clean_code.md
Created May 12, 2020 05:52 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@codinnvrends
codinnvrends / Jmeter.html
Last active April 8, 2020 07:30
Build and Execute+Report - Simple Jmeter Test Plan
-> How to create simple test plan for http server performance testing
Open jmeter gui [using jmeter/jmeter.sh]
Under new test plan
Add thread group
In thread group
Add http request
Add counter [which can be used in http request body/param/header etc.]
Add event listener as result tree
Now you should be able to execute and see result in result tree
@codinnvrends
codinnvrends / ABOUT.md
Created April 8, 2020 07:20 — forked from laobubu/ABOUT.md
A very simple HTTP server in C, for Unix, using fork()

Pico HTTP Server in C

This is a very simple HTTP server for Unix, using fork(). It's very easy to use

How to use

  1. include header httpd.h
  2. write your route method, handling requests.
  3. call serve_forever("12913") to start serving on port 12913
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
class User {
public String getName() {
return name;
}
public void setName(String name) {
1. Copy your local python folder/package to directory containing Dockerfile e.g.
../mydocker
- Dockerfile
- <mylocalpythonpackage>
- config.propertis
- ..
2. Modify your Dockerfile to add local python package to docker image as :
ADD /<your local python package/dir.> /<same_package_name_as_local> e.g. ADD /test /test
@codinnvrends
codinnvrends / general_docker_container_web-server
Created January 25, 2020 06:05
General docker commands for web-server - with ip/port binding
Show all images -> docker images
list of images....
<your_image>
....
Remove image -> docker rmi <image_name> (-f for force removal>
Build image -> docker build -t ts_image:1.2 <directory containing Dockerfile/current dir as ' . ' >
Start container with 8080/81 port exposed to outerworld/localhost -> docker run --rm -it -p 8080:8080 -p 8081:8081 <your_image>:1.2