Skip to content

Instantly share code, notes, and snippets.

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

Lokesh Soni lokeshsoni

🏠
Working from home
View GitHub Profile
@lokeshsoni
lokeshsoni / nlp.py
Created April 10, 2017 16:18
checking stop words out of nlp.vocab spacy
for word in nlp.vocab:
if nlp.vocab[word.orth_].is_stop:
print(word.orth_)
@lokeshsoni
lokeshsoni / bash-cheatsheet.sh
Created December 30, 2017 06:14 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
"""Downsized version of Xception, without residual connections.
"""
from __future__ import print_function
from __future__ import absolute_import
from keras.models import Model
from keras.layers import Dense
from keras.layers import Input
from keras.layers import BatchNormalization
from keras.layers import Activation
@lokeshsoni
lokeshsoni / Tranfer_Learning_Keras_02.py
Created January 15, 2018 05:31 — forked from prakashjayy/Tranfer_Learning_Keras_02.py
Transfer Learning using Keras
from keras import applications
from keras.preprocessing.image import ImageDataGenerator
from keras import optimizers
from keras.models import Sequential, Model
from keras.layers import Dropout, Flatten, Dense, GlobalAveragePooling2D
from keras import backend as k
from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard, EarlyStopping
img_width, img_height = 256, 256
import warnings
warnings.filterwarnings("ignore")
import os
from shutil import copy
from flask import jsonify
from time import time
import numpy as np
from flask import Flask, request, render_template, send_from_directory
from keras.models import load_model
@lokeshsoni
lokeshsoni / tmux-cheatsheet.markdown
Created March 19, 2018 12:40 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lokeshsoni
lokeshsoni / cifar10-darknet-gist0509.ipynb
Created August 13, 2018 08:32 — forked from daveluo/cifar10-darknet-gist0509.ipynb
Demo of CPU-only Predictions and Pytorch Model Saving/Loading, 5/9/2018
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# jupyterlab-code-formatter
conda install -c conda-forge black
jupyter labextension install @ryantam626/jupyterlab_code_formatter
conda install -c conda-forge jupyterlab_code_formatter
jupyter serverextension enable --py jupyterlab_code_formatter
@lokeshsoni
lokeshsoni / setup.sh
Last active April 16, 2020 07:33
Android Studio Setup on Google Compute Engine
gcloud compute disks \
create disk1 \
--image-project ubuntu-os-cloud \
--image-family ubuntu-1804-lts \
--zone us-central1-b
gcloud compute images \
create nested-vm-image \
--source-disk disk1 \
@lokeshsoni
lokeshsoni / repo-reset.md
Created August 19, 2020 11:47 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A