Skip to content

Instantly share code, notes, and snippets.

Shohruh abduakhatov

View GitHub Profile
View python_env
name: catalyst
- conda-forge
- defaults
- ca-certificates=2017.08.26
- certifi=2018.1.18
- intel-openmp=2018.0.0
- ipython=6.4.0
- jupyter=1.0.0
View gist:b07721590de3d5c76c6d9de82ce1bbb6
# Alternative to existing logic of
# chech_vehicle_updates
def check_vehicle_updates(dict_simulation_result, current_time):
print('>>> check_vehicle_updates')
cars_free = 0
keys = list(dict_simulation_result)
abduakhatov /
Created Oct 4, 2018 — forked from myusuf3/
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
abduakhatov /
Created Jun 28, 2018 — forked from karpathy/
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
View App.kt
class App : Application(),HasActivityInjector {
lateinit var activityInjector : DispatchingAndroidInjector<Activity>
override fun onCreate() {
View BottomBarAdapter
class BottomBarAdapter : NavBarFragmentStatePagerAdapter<Fragment> {
private val fragments = ArrayList<Fragment>()
constructor(fm: FragmentManager?) : super(fm)
fun addFragments(fragment: Fragment) {
abduakhatov / Git Commands
Created Feb 1, 2017
Git commands for creating repository
View Git Commands
…or create a new repository on the command line
echo "# Fragments_CreateMeme" >>
git init
git add
git commit -m "first commit"
git remote add origin
git push -u origin master
…or push an existing repository from the command line
abduakhatov / Equal size .txt
Created Jan 24, 2017
Equal size for all consequtive elements
View Equal size .txt
View Gesture
package com.example.shohruh.eventhandling;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
You can’t perform that action at this time.