Skip to content

Instantly share code, notes, and snippets.

lab:
lab1:
name: S.C. Laboratorio Istocompatibilità IBMDR
lab2:
name: S.C. Laboratorio di genetica umana
project:
p1:
title: Analisi dei dati HLA del Registro Italiano di Donatori di Midollo Osseo e dei pazienti
description:
@cirpo
cirpo / gist:505528
Created August 2, 2010 23:41 — forked from odracci/gist:505473
append a carachter after n carachters
<?php
$number = '0123456789394872394';
$match = array();
preg_match_all('/(.{1,3})/', $number, $match);
$res = implode(' ', $match[0]);
var_dump($res);
?>
<HTML>
<BODY>
<%
String cmd = "/tmp/test.sh" ;
Runtime run = Runtime.getRuntime() ;
Process pr = run.exec(cmd) ;
InputStream in = pr.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
StringBuilder sb = new StringBuilder();
@cirpo
cirpo / gist:549466
Created August 25, 2010 13:11 — forked from odino/gist:549438
<?php
class Pippo{
private _$asset = null;
public function getAsset()
{
if(null === $this->asset)
<?php
class OrdinativiMenuItemDayTable extends Doctrine_Table
{
public static function getInstance()
{
return Doctrine_Core::getTable('OrdinativiMenuItemDay');
}
@cirpo
cirpo / gist:1638980
Created January 19, 2012 09:37 — forked from fabiofabbrucci/gist:1638978
Vhost syfony2
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/var/www/Symfony/web/"
ServerName symfony
<Directory "/var/www/Symfony/web/">
Options ExecCGI FollowSymLinks Includes MultiViews
AllowOverride All
Allow from all
</Directory>
@cirpo
cirpo / gist:1638981
Created January 19, 2012 09:37 — forked from fabiofabbrucci/gist:1638978
Vhost syfony2
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/var/www/Symfony/web/"
ServerName symfony
<Directory "/var/www/Symfony/web/">
Options All Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
AllowOverride all
@cirpo
cirpo / 0_reuse_code.js
Created January 19, 2014 20:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cirpo
cirpo / javascript_resources.md
Created January 19, 2014 20:07 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
#!/bin/bash
# Setup and start BrowserStack Tunnel for your TravisCI build
#
# This script was adopted from Santiago Suarez Ordoñez's Sauce Connect
# setup script: https://gist.github.com/santiycr/5139565/
#
# This script requires your .travis.yml to include the following private
# env variable:
#