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
// Tango palette <http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines> | |
// Depends on Hash class from MooTools <http://mootools.net/> | |
var palette = new Hash({ | |
white: '#ffffff', black: '#000000', | |
butter1: '#fce94f', butter2: '#edd400', butter3: '#c4a000', | |
orange1: '#fcaf3e', orange2: '#f57900', orange3: '#ce5c00', | |
chocolate1: '#e9b96e', chocolate2: '#c17d11', chocolate3: '#8f5902', | |
chameleon1: '#8ae234', chameleon2: '#73d216', chameleon3: '#4e9a06', | |
skyBlue1: '#729fcf', skyBlue2: '#3465a4', skyBlue3: '#204a87', | |
plum1: '#ad7fa8', plum2: '#75507b', plum3: '#5c3566', |
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
% Toto je pokus o implantaciu rustiny do Latexu | |
% 26. 1. 1994 Jano Busa | |
%% zdroj: http://lists.felk.cvut.cz/pipermail/cstex/2003-January/015285.html | |
\chardef\mz='176 % myakkij znak | |
\chardef\tz='177 % tverdyj znak | |
\chardef\pj='32 % russkoe j | |
\chardef\pJ='22 % propisnoe russkoe J | |
\chardef\pe='13 % obratnoe e |
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
// ==UserScript== | |
// @name Real World Haskell comments remover | |
// @namespace http://sergejx.mysteria.cz/ | |
// @description Remove links to comments from Real World Haskell online book. | |
// @include http://book.realworldhaskell.org/read/* | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[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
#! /bin/sh | |
# | |
# pic2graph -- compile PIC image descriptions to bitmap images | |
# | |
# by Eric S. Raymond <[email protected]>, July 2002 | |
# In Unixland, the magic is in knowing what to string together... | |
# | |
# Take a pic/eqn diagram on stdin, emit cropped bitmap on stdout. | |
# The pic markup should *not* be wrapped in .PS/.PE, this script will do that. |
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 | |
# Simple backups based on article | |
# http://blog.interlinked.org/tutorials/rsync_time_machine.html | |
FILES=$HOME # What to backup | |
BACKUPS=/media/sklad/backups-`uname -n` # Where to store backups | |
# File .rsync-filter can be used to exclude/include some files | |
# Use `man 1 rsync` for more information | |
date=`date "+%Y-%m-%dT%H:%M:%S"` |
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 | |
# Compile file with right tool based on file extension. | |
# If Makefile exists in direcotory, then run make. | |
function run() { | |
echo $@ | |
$@ | |
} | |
function find_tex_master() { |
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 | |
# Notify me at specified time using `at' and `notify-send' | |
# Strings | |
TITLE="Notify At…" | |
QUESTION="When to notify you?" | |
DEFAULT="now +10min" | |
NOTIFICATION="You have been notified!" | |
# Code |
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
My customized keyboard layouts for X.org | |
To apply patches use: | |
sudo patch -b -p0 < patch_file |
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 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import zipfile | |
from BeautifulSoup import BeautifulSoup, Tag # Better for HTML | |
from lxml import etree # Better for XML |
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="UTF-8"?> | |
<language id="taskpaper" _name="TaskPaper" version="2.0" _section="Others"> | |
<metadata> | |
<property name="globs">todo;*.taskpaper</property> | |
</metadata> | |
<styles> | |
<style id="project" _name="Project" map-to="def:type"/> | |
<style id="task" _name="Task" map-to="def:keyword"/> | |
<style id="note" _name="Note" map-to="def:comment"/> |
OlderNewer