I hereby claim:
- I am bonzini on github.
- I am bonzini (https://keybase.io/bonzini) on keybase.
- I have a public key ASBpTRbkHp25GSmFkfeNK-hZuRh5CZm81Qb2t1Y4BNz04wo
To claim this, I am signing this object:
-----BEGIN PGP MESSAGE----- | |
hQEMA4c6sA8rjgLDAQf+MRvlUKJsHKwAdYruf+oiENwLKJc9mwcJcWlOXBpWGZWI | |
0TsJ21SxJs2JnC1irx09gZDy2rxBhWPI08WJ2WrbvYB9w7Aq7U+sIjFFqjwbUpE7 | |
L6a6GQxwhmC0CRdMEnRujsGQatru0w5E+CQWkqrzJG5OkTxKZFlfXhqvp7qocCZw | |
jV+btVgG/2XuLYVvSe5V2weYlqyWZVJAZYV6efmCV1482UJTnW1GsDpRdsheyJzp | |
vik+Jzy/LZCVxKfvi6wcxE/ergXDNs2/+n75z6PWvlxwhnEAZgx2KFv/o+PMUjoO | |
gj9vwtwOZZ0wYoQi+0/XCfzqudJy1OYLxriIpkSoDNKGAfbqj0TPcqbG73hWYbzg | |
H4G6gZ287NgwDxyHu228wK2iFskOjqKja550XFy/4si3GIM+BKbFOUM3NL3/4AyP | |
kpvCVhniLX6ZSKTNRX1SIwKFQSlqWL1e8Epqlt5zpDlfsiCruXCVFUPUXseC+R76 |
I hereby claim:
To claim this, I am signing this object:
[/] | |
new-window-inherit-state=true | |
use-overlay-scrollbar=true | |
terminal-title-style='small' | |
theme-variant='light' | |
session-name='${title}' | |
use-tabs=true | |
new-instance-mode='new-session' | |
enable-wide-handle=false | |
app-title='${terminalNumber}: ${sessionName}' |
Patchew is designed around three components:
a web server, which hosts the Patchew user interface and also exposes API endpoints for use from the other parts;
one or more importers, which read email from an IMAP server, send them to the server, and pushes the messages to a git tree;
/* Copyright (C) 2012-2017 by László Nagy | |
Copyright (C) 2017 Paolo Bonzini | |
This file is based on Bear. | |
It 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. |
#include <stdio.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#define N 100000 | |
char buf1[1024], buf2[1024], buf3[1024], buf4[65536]; | |
static __attribute__((noinline)) bool memeqzero1(const void *data, size_t length) | |
{ |
__all__ = [ 'EventBasedLoader', 'EventBasedSafeLoader' ] | |
from yaml.composer import Composer | |
from yaml.constructor import Constructor, SafeConstructor | |
from yaml.resolver import Resolver | |
import yaml | |
# Replacement for Scanner+Parser that replays events from a stream. These | |
# four methods seem to be the entire interface that Composer expects. | |
class EventBasedParser(object): |
# Copyright 2014 Paolo Bonzini | |
# API inspired by py-simple-bdd. | |
# License: X11 (MIT) | |
class Variable(object): | |
def __init__(self, name): | |
self._name = name | |
self._hash = hash(name) | |
self._node = Node(self, Node.T, Node.F) |
from datetime import date | |
# per ogni festa che cade di: | |
# sabato, domenica, -1 punto (niente ponte e niente festa) | |
# giovedi', martedi', +4 punti (ponte!!) | |
# lunedi', venerdi', +3 punti (festa dopo fine settimana) | |
# mercoledi +1 punti (solo festa) | |
punteggio = [3, 4, 1, 4, 3, -1, -1] | |
feste = [(1,1), # capodanno | |
(6,1), # epifania |
#! /usr/bin/env python | |
# | |
# GTester-compatible main program for pyunit | |
# | |
# Copyright (C) 2011 Red Hat, Inc. | |
# Author: Paolo Bonzini <[email protected]> | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. |