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
# 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 |
I hereby claim:
- I am fredguth on github.
- I am fred (https://keybase.io/fred) on keybase.
- I have a public key whose fingerprint is E857 ADDF 20E1 4B70 9160 59A2 EB5B D737 E4E1 E64B
To claim this, I am signing this object:
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
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 Graphics.Element exposing (..) | |
import Graphics.Collage exposing (..) | |
import Color exposing (..) | |
import Mouse | |
import Window | |
import Random | |
import Time exposing (..) | |
import Signal exposing (foldp) | |
--Model |
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 Graphics.Element exposing (..) | |
import Graphics.Collage exposing (..) | |
import Color exposing (..) | |
import Mouse | |
import Window | |
import Time exposing (..) | |
import Signal exposing (foldp) | |
--Model |
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 Graphics.Element exposing (..) | |
import Graphics.Collage exposing (..) | |
import Color exposing (..) | |
import Mouse | |
import Window | |
import Time exposing (..) | |
import Signal exposing (foldp) | |
--Model |
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 Graphics.Element exposing (..) | |
import Graphics.Collage exposing (..) | |
import Color exposing (..) | |
import Mouse | |
import Window | |
relativeMouse : (Int, Int) -> (Int, Int) -> (Int, Int) | |
relativeMouse (origin_x, origin_y) (x, y) = | |
(x-origin_x, origin_y - y) | |
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
/** | |
* Show metabox on post format | |
* @author @fredguth | |
* @link https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress/wiki/Adding-your-own-show_on-filters | |
* | |
* @param bool $display | |
* @param array $meta_box | |
* @return bool display metabox | |
*/ | |
function fg_metabox_show_on_post_format( $display, $meta_box ) { |