Skip to content

Instantly share code, notes, and snippets.

View orymate's full-sized avatar

Máté Őry orymate

  • Budapest, Hungary
  • 18:25 (UTC +01:00)
View GitHub Profile
digraph {
rankdir=LR;
dnet->shag_beckur;
talley->shag_beckur;
talley->flook;
rhapsodhy->gabesas;
talley->gabesas;
huf->flook;
zso->moqs;
huf->shag_beckur;
# EBNF language definition file
#
# Author: Ory, Mate
# Mail: [email protected]
# Date: 24 Mar 2010
# Version: 1.0
#
# Based on {awk,ini}.lang.
# ------------------------------------------
# This file is a part of highlight, a free source code converter released under the GPL.
#!/bin/bash
# display line-of-comments/loc rate of parameters
LOC=0
EMPTY=0
COMMENT=0
printf "%-40s%8s%8s%8s\n" "File name" "LOC" "Comment" "SLOC"
while [ "$1" != '' ]
do
<?php
function utfcrop($string, $bytecount)
{
$ret = "";
$len = strlen($string);
for ($i = 0; $i < $len; $i++) {
if (($string[$i] & 0x80) == 0 && $i + 1 > $bytecount)
return $ret;
else if (($string[$i] & 0xE0) == 0xD0 && $i + 2 > $bytecount)
++++--------------- aktuális level 1, 2, 3, 4 linuxon
|||| +------------ szokásos billentyűfelirat
|||| | +------- javaslat (1234)
|||| | | +- megjegyzés
|||| | | |
|||| | | |
0§¬¬ 0§. 101 gomboson altgr-rel íÍ, nem bántjuk
1'~~ 1'~ 1'~~ 4. a deadkey
2"ˇˇ 2"ˇ 2"ˇˇ 3. a deadkey
++++------------------- aktuális level 1, 2, 3, 4 X-en
|||| +++--------------- aktuális level 1, 2, 3 Windowson (level 4 nem használt)
|||| ||| +------------ szokásos billentyűfelirat
|||| ||| | +------- javaslat (1234)
|||| ||| | | +- megjegyzés
|||| ||| | | |
|||| ||| | | |
0§¬¬ 0§ 0§. 101 gomboson altgr-rel íÍ, nem bántjuk
1'~~ 1'~ 1'~ 1'~~ 4. a deadkey
if [ ! "$PS1" ]; then
exit 0;
fi
alias ls="ls --color=auto"
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
alias_ssh () { echo -ne "\033]2;$*\007"; "ssh" $*; }
alias ssh=alias_ssh
startup_message off
hardstatus on
hardstatus alwayslastline
#black & white
hardstatus string '%{.kw}%-w%{.wk}%n %t%{-}%+w %= %{+b}%10`'
#blue & red
#hardstatus string '%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %c '
#!/bin/bash
ECHO=echo
if [ "x$DISPLAY" != x ]
then
if type -P zenity &>/dev/null
then
ECHO='zenity --info --text'
elif type -P xmessage &>/dev/null
then
ECHO='xmessage'
set background=dark
set softtabstop=4
set sw=4
set expandtab
set smarttab
set autoindent
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
au BufNewFile,BufRead *.cn setf c
autocmd BufNewFile,BufRead *.html set sw=2