Skip to content

Instantly share code, notes, and snippets.

View robertodormepoco's full-sized avatar
🐶
⬆️ SUCH A NICE DOGGO

Roberto Lombi robertodormepoco

🐶
⬆️ SUCH A NICE DOGGO
  • Bologna/Italy
View GitHub Profile
{#
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/
Updated by: Simon Schick <[email protected]>
Parameters:
* currentFilters (array) : associative array that contains the current route-arguments
* currentPage (int) : the current page you are in
* paginationPath (string) : the route name to use for links
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled)
* lastPage (int) : represents the total number of existing pages
@robertodormepoco
robertodormepoco / cli.php
Last active August 29, 2015 14:22
curl multi
<?php
$urls = [
'http://localhost/late.php?sec=5',
'http://localhost/late.php?sec=4',
'http://www.google.com/index.php',
'http://localhost/late.php?sec=3',
'http://localhost/late.php?sec=3',
'http://localhost/late.php?sec=3',
'http://localhost/late.php?sec=3',
$msg = "Remote include\n";
#include<stdio.h>
#define MAX_DIM 20
int main () {
int a[MAX_DIM];
int i, y, t;
printf ("Inserisci sequenza numeri interi: \n");