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
# use ` for prefix | |
set -g prefix ` | |
# number windows from 1 | |
set -g base-index 1 | |
# highlight the active window | |
setw -g window-status-current-bg colour0 | |
set -g set-titles on |
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" | |
InputDevice "touchpad" "AlwaysCore" | |
EndSection | |
Section "Files" | |
ModulePath "/usr/lib/xorg/modules" |
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
require "rubygems" | |
require "xml" | |
#add a list of namespaces to the node | |
#the namespaces formal parameter is a hash | |
#with "prefix" and "prefix_uri" as | |
#key, value pairs | |
#prefix for the default namespace is "default" | |
def add_namespaces( node, namespaces ) | |
#pass nil as the prefix to create a default node |
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
Node # 1 | |
Name: nex:nexml | |
Prefix: nex | |
Local: nexml | |
Depth: 0 | |
Attribute # 1 | |
Name: xmlns:xsi | |
Prefix: xmlns | |
Local: xsi | |
Depth: 1 |
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
require "rubygems" | |
require "xml" | |
#parse the sample.xml ignoring whitespaces and | |
#performing entity substitution. | |
doc = XML::Reader.file("sample.xml", :options => XML::Parser::Options::NOBLANKS | | |
XML::Parser::Options::NOENT | |
) | |
#display a node's name: local and prefix |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<nex:nexml | |
version="0.8" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.nexml.org/1.0 ../xsd/nexml.xsd" | |
xmlns:nex="http://www.nexml.org/1.0" | |
generator="mesquite" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
xmlns="http://www.nexml.org/1.0"> | |
<otus |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font" > | |
<edit mode="assign" name="autohint" > | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="font" > | |
<edit mode="assign" name="rgba" > |
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
/* | |
* ===================================================================================== | |
* | |
* Filename: threads.c | |
* | |
* Description: Familiarising with pthreads. | |
* | |
* Version: 1.0 | |
* Created: Thursday 11 March 2010 01:25:12 IST | |
* Revision: none |
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
15a16,21 | |
> import XMonad.Hooks.ManageDocks | |
> import XMonad.Hooks.EwmhDesktops | |
> | |
> import XMonad.Layout.Maximize | |
> | |
> | |
19c25 | |
< myTerminal = "xterm" | |
--- |
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
IplImage* dilate( const IplImage* src, const IplImage* kernel){ | |
//create a destination image with the same parametrs as the source image | |
IplImage* dst = cvCreateImage(cvSize(src->height, src->width), IPL_DEPTH_8U, 1); | |
vector<uchar> pix_values; //to store all the pixels that are covered | |
int i, j; | |
//loop over each row | |
for( int row = 0; row < src->height; row++ ){ |