https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0
This file contains 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
from PyQt4.QtGui import QImage, qRgb | |
import numpy as np | |
class NotImplementedException: | |
pass | |
gray_color_table = [qRgb(i, i, i) for i in range(256)] | |
def toQImage(im, copy=False): | |
if im is None: |
NVIDIA Readme (http://us.download.nvidia.com/XFree86/Linux-x86_64/418.56/README/index.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.
This file contains 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
from enaml.widgets.api import Window, Container, PushButton, Timer | |
class StateMachine(object): | |
# normally handles some complicated view controller process | |
# but here we just want to listen for the timer timeout | |
def __init__(self, view): | |
self.view = view | |
self.timer = Timer() | |
self.timer.interval = 350 | |
self.timer.single_shot = True |