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
gabriel@morena:~/Projetos/dead-parrot$ python setup.py test | |
running test | |
running egg_info | |
writing Dead_Parrot.egg-info/PKG-INFO | |
writing top-level names to Dead_Parrot.egg-info/top_level.txt | |
writing dependency_links to Dead_Parrot.egg-info/dependency_links.txt | |
reading manifest file 'Dead_Parrot.egg-info/SOURCES.txt' | |
writing manifest file 'Dead_Parrot.egg-info/SOURCES.txt' | |
running build_ext | |
test_relation_has_from_model_class_as_attribute (tests.test_relationships.TestForeignKey) ... ok |
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
Traceback (most recent call last): | |
File "/usr/bin/pyccuracy_console", line 86, in <module> | |
main() | |
File "/usr/bin/pyccuracy_console", line 79, in main | |
should_throw=options.should_throw) | |
File "/var/lib/python-support/python2.5/pyccuracy/pyccuracy_core.py", line 182, in run_tests | |
results = self.context.story_runner.run_stories(self.context) | |
File "/var/lib/python-support/python2.5/pyccuracy/story_runner.py", line 46, in run_stories | |
self.__run_scenarios(current_story, context) | |
File "/var/lib/python-support/python2.5/pyccuracy/story_runner.py", line 65, in __run_scenarios |
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
__SINGLETON_INSTANCES__ = {} | |
class Singleton(object): | |
def __new__(cls, *args, **kw): | |
key = cls.__name__, args, tuple(kw.values()) | |
if key not in __SINGLETON_INSTANCES__.keys(): | |
__SINGLETON_INSTANCES__[key] = super(type, cls).__new__(cls, *args, **kw) | |
return __SINGLETON_INSTANCES__[key] |
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
class WooMeta(type): | |
def __init__(cls, name, bases, attrs): | |
names = [n for n in attrs.keys() if not n.startswith('_')] | |
cls._attributes = tuple(names) | |
super(WeeMeta, cls).__init__(name, bases, attrs) | |
class Wee(object): | |
__metaclass__ = WooMeta | |
foo = 1 | |
zoo = 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 | |
# -*- coding: utf-8; -*- | |
# | |
# Copyright (C) 2009 Gabriel Falcão <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2 of the | |
# License, or (at your option) any later version. | |
# |
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 | |
if [ ! $USER == "root" ]; then | |
echo "You must be root to run this script!"; | |
exit 1; | |
fi; | |
echo 'deb http://deb.gabrielfalcao.com/unstable ./' >> /etc/apt/sources.list | |
aptitude update | |
aptitude install python-pyccuracy |
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
# -*- coding: utf-8 -*- | |
# Copyright (C) <2009> Gabriel Falcão <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty 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
# -*- coding: utf-8 -*- | |
# Copyright (C) <2009> Gabriel Falcão <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty 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
<?php | |
ob_start(); | |
include("some_file.php"); | |
$stdout = ob_get_contents(); | |
ob_end_clean(); | |
?> |
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 | |
# Adium theme AdiumMessageStyle installer for Empathy | |
# Originally © 2009 Antono Vasiljev | |
# Licensed under the same terms as Empathy | |
# http://antono.info/en/165-install-adium-themes-to-empathy | |
# Changed by Vertlo Oraerk (did not work with directories containing spaces in the names) | |
if [ -z $1 ] | |
then | |
echo |
OlderNewer