In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains hidden or 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
Requisitos da vaga: | |
- OO | |
- HTML/CSS/JS | |
- Experiência comprovada em desenvolvimento web (2 anos) em qualquer linguagem de preferência ruby | |
- Rails 3 >= | |
- Postgresql ou Mysql | |
- Unix/Linux | |
- posição full-time (40 horas/semana); | |
- remoto, com reuniões diárias via Skype e presenciais de 1 a 2 vezes por mês; | |
- horário flexível; |
This file contains hidden or 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
Requisitos da vaga: | |
- Experiência em ruby (2 anos); | |
- Rails 3 >= | |
- HTML/CSS/JS; | |
- Postgresql; | |
- Unix/Linux; | |
- posição full-time (40 horas/semana); | |
- remoto, com reuniões diárias via Skype e presenciais de 1 a 2 vezes por mês; | |
- horário flexível; |
This file contains hidden or 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
function init(m, email, password) { | |
// generate the database encryption key | |
vendor.nCrypto | |
.pbkdf2( | |
Buffer.from(m.mnemonic, "utf8"), | |
Buffer.from(databaseKeySeed, "utf8"), | |
2048, | |
64, | |
"sha512" | |
) |
This file contains hidden or 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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
notMyInput: Ember.computed('myInput', function() { | |
return !this.get('myInput') | |
}) | |
}); |
This file contains hidden or 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
# first get the PPA repository driver | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
# install nvidai driver | |
sudo apt install nvidia-384 nvidia-384-dev | |
# install other import packages | |
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev | |
# CUDA 9 requires gcc 6 |
This file contains hidden or 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
# Author: Pedro Borges | |
import heapq | |
import sys | |
def knapsack(val, wt, total_w): | |
elements = transform_to_list_dict(val, wt) | |
open_list = [] | |
closed_list = [] | |
# set to mark the nodes already seen | |
generated_nodes = set() |