Skip to content

Instantly share code, notes, and snippets.

View aldesantis's full-sized avatar

Alessandro Desantis aldesantis

View GitHub Profile
#include<stdio.h>
int main() {
int numbers[2];
printf("Inserisci il primo numero: ");
scanf("%d", &numbers[0]);
printf("Inserisci il secondo numero: ");
scanf("%d", &numbers[1]);
class AddTagsToPosts < ActiveRecord::Migration
def migrate
add_column :posts, :tags, :text
end
end
# Stock allocator
This article explains the concept of a stock allocator and its usage.
During the checkout process, after the delivery step, the order stocks the ordered stock items
to ship them.
The stock allocator defines the logic with which these packages are created.
The allocator is called by `Spree::Stock::SimpleCoordinator` when allocating inventory for an order.