Skip to content

Instantly share code, notes, and snippets.

View timefrancesco's full-sized avatar

Francesco Pretelli timefrancesco

View GitHub Profile
@timefrancesco
timefrancesco / BaseSucculentUITest.swift
Last active February 23, 2018 01:49
Succulent Test setup - Xcode
import Succulent
@testable import TestAppUITests
class SucculentTestUITest: XCTestCase {
private var succulent: Succulent!
var session: URLSession!
var baseURL: URL!
@timefrancesco
timefrancesco / Logging Xamarin
Created July 24, 2014 22:52
A simple Logging Class for C# and Xamarin
/* A simple Logging class, use with caution.
Usage: Call InitLog to define the logging level
There are 3 parameters:
consoleLevel = the level for logs written in the console (for debugging)
fileLevel = the level for the logs that are written to a file
defaultLevel = the default level of log when no log level is directly specified from the calling method
*/
using System;
using System.Configuration;
@timefrancesco
timefrancesco / Select Email Xamarin
Created July 24, 2014 03:16
Load the addressbook and select a person's email in Xamarin
/* A simple snippet to Open the Address book in iOS and select a person's email address and
add it to the textfield (_addressesTextView)
PLATFORM: XAMARIN iOS
*/
ABPeoplePickerNavigationController _contacts;
partial void AddEmail (NSObject sender)