Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View vaibhav-jain's full-sized avatar
🏠
Working remotely @newpage solutions inc

vaibhav jain vaibhav-jain

🏠
Working remotely @newpage solutions inc
View GitHub Profile
@vaibhav-jain
vaibhav-jain / markdown-details-collapsible.md
Created January 26, 2023 18:55 — forked from joshbuchea/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@vaibhav-jain
vaibhav-jain / Keybase.md
Last active September 19, 2020 14:13
Keybase.md

Keybase proof

I hereby claim:

  • I am vaibhav-jain on github.
  • I am iamvaibhavjain (https://keybase.io/iamvaibhavjain) on keybase.
  • I have a public key ASBgbSzYTnrZ-mIEoiD42y8fF4CMHUHMIQNfM4_qM68wyQo

To claim this, I am signing this object:

@vaibhav-jain
vaibhav-jain / gist:0b703c498d02f7807eb694700867035b
Created July 30, 2019 13:39 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@vaibhav-jain
vaibhav-jain / README-Template.md
Created August 17, 2018 08:17 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@vaibhav-jain
vaibhav-jain / dokku-error
Created September 11, 2017 14:30
dokku error
$ git push -f aws master:master
Total 0 (delta 0), reused 0 (delta 0)
remote: master
To dokku@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:omapi
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:omapi'
@vaibhav-jain
vaibhav-jain / class_names.py
Created July 31, 2017 10:12
Python to print names of all classes present inside a package. Just add this code to your __init__.py
import sys
import inspect
from pprint import pprint
clsmembers = inspect.getmembers(sys.modules[__name__], inspect.isclass)
l = list()
for k, v in clsmembers:
l.append(k)
pprint(set(l))
@vaibhav-jain
vaibhav-jain / titanic.py
Created July 30, 2017 17:58
Using TFLearn and TensorFlow to estimate the surviving chance of Titanic passengers.
#!/usr/bin/env python
import os
import numpy as np
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tflearn
from tflearn.data_utils import load_csv
from tflearn.datasets import titanic
@vaibhav-jain
vaibhav-jain / ml2.py
Created July 30, 2017 17:09
Solving classical Iris problem using machine learning.
#!/usr/bin/env python
import numpy as np
from sklearn import tree
from sklearn.datasets import load_iris
iris = load_iris()
test_tdx = [0, 50, 100]
# training data
@vaibhav-jain
vaibhav-jain / ml1.py
Last active July 23, 2017 15:56
Getting Started with Machine Learning using SciKit-learning
#!/usr/bin/env python
# My first Machine Learning Program.
from sklearn import tree
"""
Apple & oranges problem [Weight, Texture]
"""
features1 = [
[140, 0],