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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm 3.12.32 Kernel Configuration | |
# | |
CONFIG_ARM=y | |
CONFIG_SYS_SUPPORTS_APM_EMULATION=y | |
CONFIG_HAVE_PROC_CPU=y | |
CONFIG_STACKTRACE_SUPPORT=y | |
CONFIG_HAVE_LATENCYTOP_SUPPORT=y | |
CONFIG_LOCKDEP_SUPPORT=y |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Pierre Haessig — May 2014 | |
"""A simple code to interact in Python with the "real" 2048 game in web browser. | |
""" | |
from __future__ import print_function | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python | |
# Original source : https://gist.github.com/iMichka/9901318 | |
# Change : use a timer | |
import sys | |
import numpy | |
from PyQt4 import QtGui, QtCore | |
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg | |
from matplotlib.collections import PolyCollection |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Pierre Haessig — March 2014 | |
""" | |
Qt adaptation of Gael Varoquaux's tutorial to integrate Matplotlib | |
http://docs.enthought.com/traitsui/tutorials/traits_ui_scientific_app.html#extending-traitsui-adding-a-matplotlib-figure-to-our-application | |
based on Qt-based code shared by Didrik Pinte, May 2012 | |
http://markmail.org/message/z3hnoqruk56g2bje |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class TicToc(object): | |
'''Timing class | |
1st time an instance is called, it sets a timestamp (time.time()) | |
2nd time, it computes and returns the difference (in seconds, float). | |
Examples | |
-------- | |
>>> t = TicToc() | |
>>> t() # returns time.time() |