Skip to content

Instantly share code, notes, and snippets.

@dodo
dodo / haml.xml
Created May 11, 2011 03:13
haml & lesscss kate syntax hightlighting configs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Haml" version="1.1" kateversion="2.3" section="Markup"
extensions="*.haml"
author="Cies Breijs (cies_at_kde_nl)" license="LGPL">
<!-- mimetype="text/x-haml" this might be a problem as is doesn't exist -->
<!-- learned and copied a lot from rhtml.xml -->
<!-- ripped out some functionality from rhtml, like GDL, maybe put this back in some day... -->
<!-- rhtml is rails specific, i ripped the rails helper keywords out as i'm a _merb_ guy... -->
@dodo
dodo / ledwall.py
Created March 14, 2011 14:22
ledwall content script
from random import random, shuffle
from time import sleep
from math import floor, ceil, sqrt, pow
import socket
# pentawall HD 16p (HD=hexadecimal)
PORT = 1338
HOST = "172.22.100.252"#"172.22.99.6"
@dodo
dodo / .gitconfig
Last active September 25, 2015 01:58
gitconfig
[user]
name = ▟ ▖▟ ▖
email = dodo.the.last@gmail.com
signingkey = 9E949439
[i18n]
commitencoding = UTF-8
[color]
ui = auto
[diff]
tool = kompare
@dodo
dodo / imagine.py
Created October 14, 2010 01:16
baobab for poor
#!/usr/bin/env python
import re
import os
import cairo
from hashlib import md5
from colorsys import hls_to_rgb
from optparse import OptionParser
from os.path import abspath, exists, isdir, isfile, join as joinpath
@dodo
dodo / console.py
Created October 7, 2010 05:03
python console helper
def getTerminalSize():
def ioctl_GWINSZ(fd):
try:
import fcntl, termios, struct, os
cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ,
'1234'))
except:
return None
return cr
cr = ioctl_GWINSZ(0) or ioctl_GWINSZ(1) or ioctl_GWINSZ(2)
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
import Graphics.X11
import Graphics.X11.Xlib.Types (Image(Image))
import Foreign.Marshal.Alloc
import Foreign.Storable
import Foreign.Ptr
import Foreign.C.Types
import Foreign.C.String
import Control.Applicative
import qualified Graphics.GD as GD
" ==Vimperator_Color_Scheme==
" name: Darkness
" ==Darkness_Colorscheme_Settings==
"StatusLine settings
hi StatusLine color: #afafaf; background: #222222; font-size: 8px;
hi StatusLineNormal color: #afafaf; background: #222222; font-size: 8px;
hi StatusLineBroken color: #000000; background: #BA8823; font-size: 8px;
hi StatusLineSecure color: #000000; background: #64930C; font-size: 8px;
hi StatusLineExtended color: #000000; background: #0c6493; font-size: 8px;
/* CSS an dieser Stelle wirkt sich auf den Monobook-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */
/* Kleinschreibung nicht erzwingen */
.portlet h5,
.portlet h6,
#p-personal ul,
#p-cactions li a {
text-transform: none;
}
body {
require 'java'
require 'core'
include_class Java::processing.core.PApplet
def run!(acls)
runswing! acls
end
def runswing!(acls)
import System.Random
import Control.Monad.State
type Point = (Double, Double)
pointPlus :: Point -> Point -> Point
pointPlus (x1, y1) (x2, y2) = (x1 + x2, y1 + y2)
polarToPoint :: Double -> Double -> Point
polarToPoint angle length