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
license: gpl-3.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
license: gpl-3.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
license: gpl-3.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
import QtQuick 2.2 | |
import QtQuick.Window 2.1 | |
Window { | |
visible: true | |
width: 360 | |
height: 360 | |
MouseArea { | |
id: mouseArea |
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
$ wget https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/28/compat-drivers-2013-03-28-5-u.tar.bz2 | |
$ tar xjf compat* | |
$ cd compat* | |
$ ./scripts/driver-select alx | |
$ make | |
$ sudo make install | |
$ sudo modprobe alx |
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
def autofill(self): | |
self.firstSelected = None | |
regels = self.fields[:len(self.fields)/2] | |
emptyfields = [f for r in regels for f in r if f.piece.type != ''] | |
topping = self.fields[len(self.fields)/2:] | |
tobefilledfields = [f for r in topping for f in r if f.piece.type == ''] | |
random.shuffle(tobefilledfields) | |
for (a, b) in zip(emptyfields, tobefilledfields): | |
b.piece = a.piece | |
a.piece = Piece('', 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
def index_2d(myList, v): | |
for i, x in enumerate(myList): | |
if v in x: | |
return (i, x.index(v)) |
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
while :; do eject -T; sleep 10; done |