- Clean pkg cache
- Remove unused packages (orphans)
- Clean cache in /home
- remove old config files
- Find and Remove
- duplicates
- empty files
- empty directories
- broken symlinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To fetch the upstream from an outdated fork or to update a fork | |
# https://garygregory.wordpress.com/2016/11/10/how-to-catch-up-my-git-fork-to-master/ | |
$ git fetch upstream | |
$ git remote add upstream https://github.com/pytorch/tutorials or <the url of the upstream> | |
$ git remote -v # check if the things are okay or not | |
$ git checkout master | |
$ git merge upstream/master | |
# To create a PR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
template<typename T> | |
class BinarySearchTree | |
{ | |
private: | |
struct tree_node | |
{ | |
tree_node* left; | |
tree_node* right; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keras | |
from keras.models import load_model | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, Activation, Flatten | |
from keras.layers import Conv2D, MaxPooling2D | |
from sklearn.model_selection import train_test_split | |
import numpy as np | |
from sklearn import preprocessing | |
import cv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.models import load_model | |
import numpy as np | |
import cv2 | |
import time | |
import pyscreenshot as ImageGrab | |
import pyautogui | |
#loading the model | |
model = load_model('Pong_Thu May 2 08_33_34 2019.h5') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import pyscreenshot as ImageGrab | |
import keyboard | |
import os | |
import time | |
import numpy as np | |
with open('actions.csv', 'w') as csv: |