I hereby claim:
- I am mirkobonadei on github.
- I am mirkobonadei (https://keybase.io/mirkobonadei) on keybase.
- I have a public key whose fingerprint is 1339 BF92 83F9 00FC 2642 6CE8 9B66 90CF 1B07 8857
To claim this, I am signing this object:
import unittest | |
import copy | |
class Store(object): | |
def __init__(self): | |
self.cache = {"00000": 0, | |
"00001": 8, | |
"00011": 8*2*0.95, | |
"00111": 8*3*0.90, |
Gen\strictlyPos with size 10 | |
10 | |
5 | |
9 | |
9 | |
8 | |
6 | |
9 | |
3 | |
4 |
Gen\int with size 30 | |
14 | |
-30 | |
-1 | |
13 | |
20 | |
17 | |
14 | |
-4 | |
18 |
Gen\int with size 10 | |
8 | |
1 | |
0 | |
10 | |
-3 | |
-6 | |
-8 | |
-9 | |
-3 |
I hereby claim:
To claim this, I am signing this object:
-module(coffee_fsm). | |
-include_lib("eunit/include/eunit.hrl"). | |
-behaviour(gen_fsm). | |
-export([start_link/0, init/1]). | |
-export([stop/0, terminate/3]). | |
-export([americano/0, cappuccino/0, tea/0, espresso/0, cup_removed/0, pay/1, cancel/0]). | |
-export([selection/2, payment/2, remove/2, handle_event/3, handle_info/3, code_change/4, handle_sync_event/4]). | |
%% State names macro |
<?php | |
class DriverFactory | |
{ | |
private $server; | |
private $options; | |
public function __construct($server = 'localhost:27017', array $options = array()) | |
{ | |
$this->server = $server; |
<?php | |
class Device | |
{ | |
private $kind; | |
private $os; | |
public function __construct($kind, $os) | |
{ | |
$this->kind = $kind; |
<?php | |
class Device | |
{ | |
private $userAgent; | |
private $kind; | |
private $os; | |
private $devicesDatabase; | |
public function __construct($userAgent, $devicesDatabase) |
% courses.pl | |
% The Art of Prolog - Exercise 2.2.1 (i - ii) pag. 39 | |
% THIS VERSION IS INCOMPLETE! | |
course(laboratorio_di_linguaggi_di_programmazione, time(monday,9.30,11.30),lecturer(vizzarri),location(u6,10)). | |
course(linguaggi_e_computabilita,time(tuesday,8.30,11.30),lecturer(simone),location(u6,10)). | |
course(sistemi_operativi_e_reti,time(tuesday,11.30,13.30),lecturer(de_paoli),location(u6,10)). | |
course(sistemi_operativi_e_reti,time(wednesday,8.30,10.30),lecturer(de_paoli),location(u6,10)). | |
course(paradigmi_di_programmazione,time(wednesday,10.30,13.30),lecturer(pasi),location(u6,10)). | |
course(complementi_di_matematica,time(thursday,8.30,10.30),lecturer(de_michele),location(u6,10)). |