Skip to content

Instantly share code, notes, and snippets.

View JNaranjo-Alcazar's full-sized avatar
🎮
Focusing

Javier Naranjo-Alcazar JNaranjo-Alcazar

🎮
Focusing
View GitHub Profile
@denguir
denguir / cuda_install.md
Last active July 20, 2024 20:02
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@andres-fr
andres-fr / wiener_deconv.py
Last active January 12, 2022 20:02
Wiener deconvolution study
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Wiener deconvolution study.
Copyright (C) 2021 aferro (ORCID: 0000-0003-3830-3595)
This program is free software: you can redistribute it and/or modify
@espoirMur
espoirMur / install_nvidia_driver.md
Last active April 1, 2024 19:22
How I fix this issue NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I am no longer abe to monitor this post , I have decided to move everything to my personal blog for better monitoring.

Please click here to access the full post

@john-science
john-science / python.dockerfile
Last active July 11, 2021 22:56
Installing Python v3.8 dev on Ubuntu 20.04 via Docker
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install --no-install-recommends -y python3-pip python3.8-dev && \
apt-get install vim && \
apt-get install git
@uuklanger
uuklanger / howto_setup_pylint_with_pycharm.md
Last active May 7, 2024 14:23
HOWTO - Setup pylint with PyCharm and the PyLint Plugin

Overivew

Setting up a linter can help detect odd or non-typical coding practices. The following will describe how to setup PyCharm for basic linting with the PyCharm PyLint plugin.

This assumes you have a venv setup within your current project.

Install Pylint

For pylint for your current project venv the following two commands should be run in your project root. The first will install pylint and the second will create an rc file which you can then adjust for your current project.

@pablokbs
pablokbs / docker-raspberry.md
Last active April 21, 2024 04:31
Docker en raspberry
@jeremyjordan
jeremyjordan / sgdr.py
Last active December 4, 2023 13:41
Keras Callback for implementing Stochastic Gradient Descent with Restarts
from keras.callbacks import Callback
import keras.backend as K
import numpy as np
class SGDRScheduler(Callback):
'''Cosine annealing learning rate scheduler with periodic restarts.
# Usage
```python
schedule = SGDRScheduler(min_lr=1e-5,
@wingbeats
wingbeats / wingbeats_guided_grad-cam.py
Last active July 7, 2021 06:37
Wingbeats Guided Grad-CAM
## based on https://github.com/jacobgil/keras-grad-cam
## and on https://github.com/vense/keras-grad-cam/blob/master/grad-cam.py
import keras
from keras.layers import Input
from keras.layers import BatchNormalization
from keras.layers import Conv2D
from keras.layers import Activation
from keras.layers import MaxPooling2D
from keras.layers import GlobalAveragePooling2D
Let [tag] = any tag in upstream repo
git fetch upstream --tags
git push origin --tags
@sloria
sloria / bobp-python.md
Last active July 21, 2024 04:44
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens