$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on 2019-08-22 09:37:36 | |
| @author: fmiorell | |
| """ | |
| # This script registers the "turbo" colormap to matplotlib, and the reversed version as "turbo_r" | |
| # Reference: https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html |
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.
List of desktop Nvidia GPUS ordered by CUDA core count
I created it for those who use Neural Style
Guys, please add your hardware setups, neural-style configs and results in comments!
| GPU | CUDA cores | Memory | Processor frequency |
|---|---|---|---|
| GeForce GTX TITAN Z | 5760 | 12 GB | 705 / 876 |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example" | |
| android:versionCode="1" | |
| android:versionName="1.0"> | |
| <uses-sdk android:minSdkVersion="8"/> | |
| <uses-permission android:name="android.permission.READ_CONTACTS" /> | |
| <application android:label="@string/app_name"> |
| This file (with a leading space) exists so that the gist has a sensible name, rather than "LICENSE." |
Update 2022: git checkout -p <other-branch> is basically a shortcut for all this.
FYI This was written in 2010, though I guess people still find it useful at least as of 2021. I haven't had to do it ever again, so if it goes out of date I probably won't know.
Example: You have a branch refactor that is quite different from master. You can't merge all of the
commits, or even every hunk in any single commit or master will break, but you have made a lot of
improvements there that you would like to bring over to master.
Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.