Skip to content

Instantly share code, notes, and snippets.

Luigi Saggese luigisaggese

Block or report user

Report or block luigisaggese

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luigisaggese
luigisaggese / AppDelegate.cs
Last active Oct 24, 2017
PushNotification Localytics
View AppDelegate.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using Facebook.CoreKit;
using Firebase.Core;
using Firebase.DynamicLinks;
using Foundation;
using Google.MobileAds;
View script.sql
WITH table_scans as (
SELECT relid,
tables.idx_scan + tables.seq_scan as all_scans,
( tables.n_tup_ins + tables.n_tup_upd + tables.n_tup_del ) as writes,
pg_relation_size(relid) as table_size
FROM pg_stat_user_tables as tables
),
all_writes as (
SELECT sum(writes) as total_writes
FROM table_scans
@luigisaggese
luigisaggese / PulsingHaloLayer
Created Jun 11, 2014
PulsingHaloLayer for pierceboggan
View PulsingHaloLayer
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreAnimation;
using System.Drawing;
using System.Threading.Tasks;
namespace PulsingHaloLayer
@luigisaggese
luigisaggese / gist:7228772
Created Oct 30, 2013
Table and search for fulltext
View gist:7228772
CREATE TABLE tsv_table (
email varchar(500),
what varchar(4096),
tsv tsvector
)
WITH (OIDS=FALSE)
;
CREATE INDEX ix_tsv_table_what ON tsv_table USING gin (tsv);
@luigisaggese
luigisaggese / gist:6649099
Created Sep 21, 2013
Environment Xamarin
View gist:6649099
=== Xamarin Studio ===
Version 4.0.12 (build 3)
Installation UUID: e9ccd140-6f55-4fc1-8d93-e96912bf1ed5
Runtime:
Mono 3.2.0 ((no/7c7fcc7)
GTK 2.24.20
GTK# (2.12.0.0)
Package version: 302000000
View Android Log
D/AndroidRuntime( 3508):
D/AndroidRuntime( 3508): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 3508): CheckJNI is ON
D/dalvikvm( 3508): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 3508): Added shared lib libjavacore.so 0x0
D/dalvikvm( 3508): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 3508): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 3508): Calling main entry com.android.commands.am.Am
D/AndroidRuntime( 3508): Shutting down VM
View new_gist_file
var json = new Cirrious.MvvmCross.Plugins.Json.MvxJsonConverter();
var client = new Cirrious.MvvmCross.Plugins.Network.Rest.MvxJsonRestClient
{
JsonConverterProvider = () => json
};
var request = new MvxRestRequest(address);
request.CookieContainer = new CookieContainer();
CookieCollection cc = new CookieCollection();
cc.Add(new Cookie("JE", "01*YZXv5AFHpSAQiMh992BCikUgAiMFq7GK9jxX95wm/uTWC7sXOONp3LFoT6pLriI0yILcrPQr4ydq4C2kdPoLYbmKgBa3kFWdlMzXztdaCyi8RaCd1P8rPtnBIYZR+0D3+hgyNQ3TOrEVvgyaHdoJfGO29fZWWGWT7frWEc5udL5yARsyozxZg1T8ILyaOHg/1qBcwRlcPynIel6bqtqDJu3qWyBwYlyFVPsudNlWF3HHHBT4aoQeiCP/cMoLX6RePhtsDJw2vUdtIP0qTKWZZC90900c8zt7WIZdTJaUuiVdqjsIMMHRtVdZPY+3PUea1dP7wkrysqzyMawvxzslL5n45OIxGeAAxKSm2NW0BDgtWvFXZXAxnSGnN8wViq2MV8iK38ah/ATO0L/gSOwloh0B7y8OWJEWE4pmm5TsEg0NqCgOY7bEs8r/cUgkGVou+Bu5ng19UzApw+tXG1smANKsCb9nvj6faKXcHn8OhGLdBhPkyIt56jZXMEmQnt4z8d8Y1MpaAE+rmHH02sbjwGJicMqNfLUUVkqlMbR/i6qADrAZti0O7lrwX+YyE2mYw4//
You can’t perform that action at this time.