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
diff -pruN cournal/cournal/documentchooserdialog.py cournal-simon-workspace/cournal/documentchooserdialog.py | |
--- cournal/cournal/documentchooserdialog.py 1970-01-01 01:00:00.000000000 +0100 | |
+++ cournal-simon-workspace/cournal/documentchooserdialog.py 2012-06-19 16:28:52.351488468 +0200 | |
@@ -0,0 +1,86 @@ | |
+#!/usr/bin/env python3 | |
+# -*- coding: utf-8 -*- | |
+ | |
+# This file is part of Cournal. | |
+# Copyright (C) 2012 Simon Vetter | |
+# |
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
RANDOMIZE TIMER | |
CLS | |
SCREEN 13 | |
FOR y = 200 TO 10 STEP -1 | |
x = x + FIX(RND * 4) | |
IF x > 160 THEN EXIT FOR | |
LINE (x, y)-(320 - x, y), 8 | |
NEXT | |
FOR y = 200 TO 10 STEP -1 | |
FOR x = 1 TO 320 |
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
#!/bin/bash | |
mkdir "zip" | |
for f in *.zip | |
do | |
if unzip -q -u -d "${f%.zip}" "$f" ; then | |
mv "$f" "zip/$f" | |
else | |
a=true |
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
#!/bin/bash | |
# rotate the screen depending on notebook position | |
# need: xrotate script, thinkpad_acpi, tp_smapi | |
export DISPLAY=":0" | |
DISPLAY=:0 | |
x=$(sed "s_(\([-0-9]\+\),.*)_\1_" /sys/devices/platform/hdaps/position) | |
y=$(sed "s_(.*,\([-0-9]\+\))_\1_" /sys/devices/platform/hdaps/position) | |
tablet=$(cat /sys/devices/platform/thinkpad_acpi/hotkey_tablet_mode) |
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
#!/bin/bash | |
echo "xrotate screen" | |
output=LVDS1 | |
if [ "$XROT_OUTPUT" ] | |
then | |
output=$XROT_OUTPUT; | |
fi | |
geomnbr=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
event=ibm/hotkey IBM0068:00 00000080 0000500c | |
action=/etc/acpi/actions/03-Penslot.sh |
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
.Xmm_ccw | |
keycode 113 = Up NoSymbol Up | |
keycode 116 = Left NoSymbol Left | |
keycode 111 = Right NoSymbol Right | |
keycode 114 = Down NoSymbol Down | |
.Xmm_cw | |
keycode 114 = Up NoSymbol Up | |
keycode 111 = Left NoSymbol Left | |
keycode 116 = Right NoSymbol Right |
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
echo 0xffffff > /sys/devices/platform/thinkpad_acpi/hotkey_mask #creates kernel warning | |
setkeycodes 71 103 | |
setkeycodes 6e 105 | |
setkeycodes 6d 106 | |
setkeycodes 6f 108 | |
setkeycodes 69 28 | |
setkeycodes 6b 1 | |
setkeycodes 6c 112 |
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
#! mrasm ; Kennung für den Assembler | |
.ORG 0 ; Adresse auf Null setzen | |
LD SP,0xF0 ; Stackpointer setzen | |
; ********************* | |
; * Hauptprogramm zum Testen des Unterprogrammes | |
; ********************* | |
MAINLOOP: | |
CALL TEMPERATURE ; Unterprogramm aufrufen | |
ST (0xFF),R0 ; R0 auf Output-Register schreiben |
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
#! mrasm ; Kennung für den Assembler | |
.ORG 0 ; Adresse auf Null setzen | |
LD SP,0xF0 ; Stackpointer setzen | |
; ********************* | |
; * Hauptprogramm zur Lüftersteuerung | |
; ********************* | |
MAINLOOP: | |
CALL TEMPERATURE ; Unterprogramm aufrufen | |
ST (0xFF),R0 ; R0 auf Output-Register schreiben |
OlderNewer