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
" Name: IndentHL2.vim | |
" | |
" Vim Syntax Highlighting for indent whitespace | |
" | |
" Last change: 2010 Mar 30 | |
" Version: 0.4 | |
" Modified By: Michael Geddes<vimmer at frog dot wheelycreek dot net> | |
" Original Author: Vedran Sajko <vsajko at oglasnik dot hr> | |
" Install: | |
" Put script in ~/.vim/plugins/ |
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 import QtGui | |
from PyQt4 import QtCore | |
#from PyQt4 import * | |
import subprocess | |
import sys | |
class CommandTextView(QtGui.QWidget): | |
''' Nice TextView that reads the output of a command syncronously ''' | |
def __init__(self, command): | |
'''command : the shell command to spawn''' |
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
[mergetool "bc3"] | |
cmd = \"c:/program files/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\" | |
trustExitCode = true | |
[merge] | |
tool = bc3 |
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/sh | |
xrandr --output DVI-0 --auto --output VGA-0 --auto | |
sleep 3 | |
xrandr --output DVI-0 --off | |
sleep 3 | |
# Now need to add this step! | |
xrandr --output VGA-0 --mode 1280x1024 --pos 0x0 --rotate normal --output S-video --off --output DVI-0 --mode 1280x1024 --pos 0x0 --rotate normal | |
sleep 3 | |
# No longer works | |
#xrandr --output DVI-0 --auto --right-of VGA-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
type | |
TCharArray = array of char; | |
TMyArray = Array[1..2,1..2] of longint; | |
PMyArray = ^TMyArray; | |
const | |
arone : TMyArray = ((1,2),(2,3)); | |
artwo : TMyArray = ((1,2),(4,5)); | |
arps : array[1..2] of PMyArray = (@arone, @artwo); | |
function Y() : longint; | |
var |
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
Function GetRTFtext(Const RichEdit: TRichEdit): String; | |
var | |
MemoryStream : TMemoryStream; | |
RTFText : AnsiString; | |
begin | |
MemoryStream := TMemoryStream.Create; | |
try | |
RichEdit.Lines.SaveToStream(MemoryStream); | |
MemoryStream.position := 0; | |
if MemoryStream.size > 0 then |
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
Section "ServerLayout" | |
Identifier "X.org Configured" | |
Screen 0 "Screen0" 0 0 | |
InputDevice "Mouse0" "CorePointer" | |
InputDevice "Keyboard0" "CoreKeyboard" | |
EndSection | |
Section "Files" | |
ModulePath "/usr/lib/xorg/modules" | |
FontPath "/usr/share/fonts/X11/misc" |
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/sh | |
xrandr --output DVI-0 --auto --output VGA-0 --auto | |
sleep 3 | |
xrandr --output DVI-0 --off | |
sleep 3 | |
xrandr --output VGA-0 --mode 1280x1024 --pos 0x0 --rotate normal --output S-video --off --output DVI-0 --mode 1280x1024 --pos 0x0 --rotate normal | |
sleep 3 | |
#xrandr --output DVI-0 --auto --right-of VGA-0 | |
xrandr --output VGA-0 --mode 1280x1024 --pos 0x0 --rotate normal --output S-video --off --output DVI-0 --mode 1280x1024 --pos 1280x0 --rotate normal |
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
X.Org X Server 1.7.6 | |
Release Date: 2010-03-17 | |
X Protocol Version 11, Revision 0 | |
Build Operating System: Linux 2.6.24-27-server i686 Ubuntu | |
Current Operating System: Linux hiro 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010 i686 | |
Kernel command line: root=UUID=95104f63-e4fa-4484-86a1-1eb9a91058cb ro quiet splash acpi_sleep=s3_bios | |
Build Date: 16 June 2010 09:31:32AM | |
xorg-server 2:1.7.6-2ubuntu7.2 (For technical support please see http://www.ubuntu.com/support) | |
Current version of pixman: 0.16.4 |
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
set timeout=10 | |
set default=0 | |
menuentry "OpenWRT" --class gnu-linux { | |
set root='(hd0,1)' | |
# Optionally search for the boot partition. | |
search --no-floppy --fs-uuid --set 4e1992e5-5555-6666-7777-888888888888 | |
linux /boot/vmlinuz noinitrd root=/dev/hda2 ro quiet splash | |
boot |
OlderNewer