Skip to content

Instantly share code, notes, and snippets.

View Vijayabhaskar96's full-sized avatar

Vijayabhaskar Vijayabhaskar96

  • India
View GitHub Profile
@Vijayabhaskar96
Vijayabhaskar96 / KaggleWhlUpdater.py
Created April 23, 2020 05:12
Script to update datasets using kaggle python api
import os
from pkg_resources import parse_version
import requests
from fastai2.vision.all import download_url
import hashlib
from datetime import datetime
# NOTE : You need to have dataset-metadata.json file that has the id of dataset you're updating
# For example: {"id": "vijayabhaskar96/fastai2-wheels"}
# Visit https://github.com/Kaggle/kaggle-api/wiki/Dataset-Metadata for more details
kaggle_data={"username":"","key":""}
@Vijayabhaskar96
Vijayabhaskar96 / bengali-ai.ipynb
Created February 22, 2020 15:51
bengali ai.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Vijayabhaskar96
Vijayabhaskar96 / git_rebase.md
Created October 19, 2018 06:27 — forked from ravibhure/git_rebase.md
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@Vijayabhaskar96
Vijayabhaskar96 / iris.data
Created November 25, 2016 06:42
Iris dataset
5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.0,1.4,0.2,Iris-setosa
4.7,3.2,1.3,0.2,Iris-setosa
4.6,3.1,1.5,0.2,Iris-setosa
5.0,3.6,1.4,0.2,Iris-setosa
5.4,3.9,1.7,0.4,Iris-setosa
4.6,3.4,1.4,0.3,Iris-setosa
5.0,3.4,1.5,0.2,Iris-setosa
4.4,2.9,1.4,0.2,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
@Vijayabhaskar96
Vijayabhaskar96 / a1a2.py
Created August 7, 2016 13:48
a1 is subset of a2 or not
a1=(map(int,raw_input("Enter values of set a1 seperated by blankspaces").strip().split()))
a2=(map(int,raw_input("Enter values of set a2 seperated by blankspaces").strip().split()))
#I didnt use sets because a1,a2 may have repetitive values
count=0
for value in a1:
if value in a2:
count+=1
if count==len(a1):
print "a1 is subset of a2"
else:
sdflkjsdkofhiosetjawgijtouweoptgiksdopugio