Skip to content

Instantly share code, notes, and snippets.

View nix010's full-sized avatar

Nix nix010

  • Lisbon, Portugal or HCM, Vietnam
  • 11:58 (UTC +01:00)
View GitHub Profile
@nix010
nix010 / install_cuda.sh
Last active November 24, 2017 04:04 — forked from trungkak/tf.sh
Tensorflow GPU installation on Ubuntu 16.04
# 1. Install CUDA
# Preparation
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tmux build-essential gcc g++ make binutils
sudo apt-get install software-properties-common
# Download Cuda toolkit (Nvidia driver included)
cd ~/Downloads
# Download CUDA 8.0 from this https://developer.nvidia.com/cuda-80-ga2-download-archive, not 9.0
class SupplierListView(TemplateView):
template_name = 'supplier/list.html'
def get(self, request, *args, **kwargs):
suppliers = Supplier.objects.all()
return self.render_to_response({
'suppliers':suppliers
})
@nix010
nix010 / 0_reuse_code.js
Created September 5, 2017 09:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
INSTALLED_APPS = [
'wpadmin',
'core.apps.CoreConfig',
'news.apps.NewsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',