Skip to content

Instantly share code, notes, and snippets.

View fdonzello's full-sized avatar
🏠
Working from home

Francesco Donzello fdonzello

🏠
Working from home
View GitHub Profile
@fdonzello
fdonzello / .m
Created September 28, 2017 09:08
use
// creazione classe che gestisce le api per i feeds
FBLFeedsApi *feedsApi = [[FBLFeedsApi alloc] initWithFBLNetworkManager:BRIDGE_NETWORK_NEW_MANAGER];
// chiamata alle api (bloccante)
FBLFeedResponse *feedResponse = [feedsApi get];
if ( [feedResponse isSuccess] )
{
// ogni response è uguale. isSuccess, getData, ....
[feedResponse getData]....
@fdonzello
fdonzello / .m
Created September 28, 2017 09:02
@implementation BridgeManagersNetwork
+ (NSString *)userAgent
{
return @"custom-user-agent-to-be-defined";
}
- (FBLResponse *)executeWithFBLApiRequest:(FBLApiRequest *)apiRequest
{
// implementazione del metodo GET e POST
@fdonzello
fdonzello / aggregate_missing_fixtures.txt
Created May 9, 2016 07:32
Formazioni non consegnate COUNT
*************************** 1. row ***************************
missing_fixture: 18
fantateam: la Marchigiana
*************************** 2. row ***************************
missing_fixture: 11
fantateam: Mexico United
*************************** 3. row ***************************
missing_fixture: 5
fantateam: Palazzinarese
*************************** 4. row ***************************
@fdonzello
fdonzello / per_day_missing_fixtures.txt
Last active May 9, 2016 07:32
Formazioni non consegnate per giornata
*************************** 1. row ***************************
day: 6
fantateam: la Marchigiana
*************************** 2. row ***************************
day: 9
fantateam: la Marchigiana
*************************** 3. row ***************************
day: 11
fantateam: LinxLab
*************************** 4. row ***************************
@fdonzello
fdonzello / gist:2e1fa38e9e7c0aa85aa4
Created August 11, 2015 12:57 — forked from avimar/gist:3092732
install node.js from source with salt
nodejs-deps:
pkg.installed:
- names:
- g++
- curl
- libssl-dev
- apache2-utils
- build-essentials
require:
- pkg: git
/**
* Fm\DocumentBundle\Entity\Document
*
* @ORM\Table()
* @ORM\Entity
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="type", type="string")
* @ORM\DiscriminatorMap({"playerList" = "PlayerList", "playerPrice" = "PlayerPrice", "avatar" = "Avatar", "playerPhoto" = "PlayerPhoto", "teamPhoto" = "TeamPhoto"})
* @ORM\HasLifecycleCallbacks
*/