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 re | |
import timeit | |
# http://www.gutenberg.org/cache/epub/1597/pg1597.txt | |
# Public Domain | |
text = """ | |
Many years ago, there was an Emperor, who was so excessively fond of |
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
#include <stdio.h> | |
#include <string.h> | |
/* gcc -Wall -Werror -std=c11 -pedantic -o robotc robot.c */ | |
struct Robot_st { | |
int pos_x; | |
int pos_y; | |
struct BatteryStatus_st { | |
int capacity; |
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
# Nodes for the Abstract Syntax Tree | |
class Node(object): | |
def __init__(self): | |
self.children = [] | |
self.parent = None | |
for attr in self.__attributes__: | |
setattr(self, attr, None) | |
def __repr__(self): | |
main_attr = self.__attributes__[0] | |
return "<{class_} {attr_name}={attr_value}".format( |
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 -*- | |
class DependencyGraph(object): | |
""" | |
Handle a dependency graph. Using :py:meth:`insert`, you add objects | |
to the graph and connect them with their dependencies, and the | |
:py:meth:`resolve` function will yield them back so that any object | |
comes after all its dependencies. | |
""" |
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
# Maintainer: Nick Lanham <nick@afternight.org> | |
pkgname=pnmixer-git | |
pkgver=20130203 | |
pkgrel=1 | |
pkgdesc="PNMixer is a GTK volume mixer applet that runs in the system tray. \ | |
It is lightweight, works with both pulseaudio and alsa, supports mouse wheel \ | |
volume adjustment. | |
" | |
arch=('i686' 'x86_64') | |
license=('GPL') |
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
# Maintainer: Nick Lanham <nick@afternight.org> | |
pkgname=pnmixer-git | |
pkgver=20130203 | |
pkgrel=1 | |
pkgdesc="PNMixer is a GTK volume mixer applet that runs in the system tray. \ | |
It is lightweight, works with both pulseaudio and alsa, supports mouse wheel \ | |
volume adjustment. | |
" | |
arch=('i686' 'x86_64') | |
license=('GPL') |
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 863ccb3df64f676237c5a6f63da62b1df2c02921 Mon Sep 17 00:00:00 2001 | |
From: Cilyan Olowen <gaknar@gmail.com> | |
Date: Sun, 28 Jul 2013 01:07:38 +0200 | |
Subject: [PATCH] Add support for Excito B3 (Bubba) | |
CONFIG_MACH_BUBBA3 added to config plus some extra modules that are suitable for the device (more modem support, better IPv6 and filtering capabilities, more remote control support) | |
The board file has been added in bubba3.patch: Board configuration + special LED support | |
The PKGBUILD was modified to include the patch | |
Signed-off-by: Cilyan Olowen <gaknar@gmail.com> |
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
# | |
# Copyright 2013 Cilyan Olowen <gaknar@gmail.com> | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are | |
# met: | |
# | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above |
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
# Maintainer: 3ED <krzysztof1987 /at/ gmail /dot/ com> | |
# Contributor: jtts | |
pkgname=libreoffice-extension-languagetool-nofr | |
_pkgname=languagetool | |
pkgver=3.2 | |
pkgrel=1 | |
pkgdesc="An Open Source style and grammar checker. Will not register for french and can this be installed in parallel to Grammalecte" | |
arch=('any') | |
url="http://www.languagetool.org/" |
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/perl | |
# This script was hastily cobbled together for my own use. It can | |
# probably break your system. Use at your own risk. | |
$JAIL = "/srv/http"; | |
$USER = "http"; | |
$GROUP = "http"; | |
$WWW_DIR = "www"; | |
$BIN = "bin"; # "bin" or "sbin" |