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
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 |
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 'java' | |
require 'core' | |
include_class Java::processing.core.PApplet | |
def run!(acls) | |
runswing! acls | |
end | |
def runswing!(acls) |
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
/* 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 { |
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
" ==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; |
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
{-# 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 |
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
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) |
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 | |
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 |
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
[user] | |
name = ▟ ▖▟ ▖ | |
email = [email protected] | |
signingkey = 9E949439 | |
[i18n] | |
commitencoding = UTF-8 | |
[color] | |
ui = auto | |
[diff] | |
tool = kompare |
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 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" |
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"?> | |
<!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... --> |
OlderNewer