Skip to content

Instantly share code, notes, and snippets.

Lokesh Soni lokeshsoni

Block or report user

Report or block lokeshsoni

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View app_build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
View build error
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[18.0.
View build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
@lokeshsoni
lokeshsoni / ubuntu_remote_desktop.sh
Last active Jul 12, 2019
Google Cloud Ubuntu Remote Desktop Setup
View ubuntu_remote_desktop.sh
# Install Chrome Remote Desktop on the VM instance
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo apt update
sudo dpkg --install chrome-remote-desktop_current_amd64.deb
sudo apt install --assume-yes --fix-broken
# install desktop environment
sudo apt install ubuntu-desktop
# install google-chrome
View deep_learning_setup_gcp_cpu_ubuntu1804.sh
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
sudo apt install -y git bzip2 vim htop tree zip unzip
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
@lokeshsoni
lokeshsoni / cifar10-darknet-gist0509.ipynb
Created Aug 13, 2018 — forked from daveluo/cifar10-darknet-gist0509.ipynb
Demo of CPU-only Predictions and Pytorch Model Saving/Loading, 5/9/2018
View cifar10-darknet-gist0509.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View api.py
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
View Tranfer_Learning_Keras_02.py
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
View small_xception.py
"""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
You can’t perform that action at this time.