Skip to content

Instantly share code, notes, and snippets.

View mauroa's full-sized avatar

Mauro Agnoletti mauroa

  • Microsoft
  • Buenos Aires, Argentina
View GitHub Profile
@mauroa
mauroa / gist:9b316beca02df219657c
Last active August 29, 2015 14:25
Simulator Log Xcode 6.2
Jul 16 14:34:22 Mauros-MacBook-Pro syslogd[6877]: --- syslogd restarted ---
Jul 16 14:34:22 Mauros-MacBook-Pro syslogd[6877]: Configuration Notice:
ASL Module "com.apple.cloudd" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Jul 16 14:34:22 Mauros-MacBook-Pro syslogd[6877]: Configuration Notice:
ASL Module "com.apple.clouddocs" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Jul 16 14:34:22 Mauros-MacBook-Pro syslogd[6877]: Configuration Notice:
ASL Module "com.apple.testmanagerd" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
@mauroa
mauroa / mtouchmac
Created July 16, 2015 17:51
mtocuh launch command
Marker - Jul 16, 2015, 2:49:55 PM
Jul 16 14:50:02 Mauros-MacBook-Pro syslogd[7286]: --- syslogd restarted ---
Jul 16 14:50:02 Mauros-MacBook-Pro syslogd[7286]: Configuration Notice:
ASL Module "com.apple.cloudd" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Jul 16 14:50:02 Mauros-MacBook-Pro syslogd[7286]: Configuration Notice:
ASL Module "com.apple.clouddocs" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Jul 16 14:50:02 Mauros-MacBook-Pro syslogd[7286]: Configuration Notice:
ASL Module "com.apple.testmanagerd" claims selected messages.
@mauroa
mauroa / StartProcessResult.cs
Created August 7, 2015 15:45
Observable Output
using System;
using System.Diagnostics;
using System.Reactive.Linq;
using System.Reactive.Concurrency;
using System.Reactive.Subjects;
using Xamarin.Messaging.Client;
namespace Xamarin.Messaging.AgentManager
{
public class StartProcessResult : IStartProcessResult
@mauroa
mauroa / ToolLocationHelper.cs
Created September 11, 2015 16:16
MSBuild ToolLocationHelper
internal static string ChainReferenceAssemblyPath(string targetFrameworkDirectory)
{
string fullPath = Path.GetFullPath(targetFrameworkDirectory);
lock (locker)
{
chainedReferenceAssemblyPath = chainedReferenceAssemblyPath ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
cachedTargetFrameworkDisplayNames = cachedTargetFrameworkDisplayNames ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
string str2 = null;
if (chainedReferenceAssemblyPath.TryGetValue(fullPath, out str2))
{
Target "_CopyWatch2AppsToBundle: (TargetId:393)" in file "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets" from project "c:\users\mag\documents\visual studio 2013\Projects\App368\App368\App368.csproj" (target "_CreateAppBundle" depends on it):
3>Using "Ditto" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MacDev.Tasks.dll".
3>Task "Ditto" (TaskId:269)
3> Task Parameter:SessionId=b5dbe64d7627d034d5af230c9536adab (TaskId:269)
3> Task Parameter:Source=c:\Users\mag\documents\visual studio 2013\Projects\App368\WatchKitApp1\WatchKitApp1.WatchKitApp\bin\iPhoneSimulator\Debug\WatchKitApp1WatchKitApp.app
3> BuildServerPath=..\..\\\bin\iPhoneSimulator\Debug\WatchKitApp1WatchKitApp.app
3> BuildSessionId=
3> Configuration=Debug
3> FullConfiguration=Debug|iPhoneSimulator
3> IsAppExtension=false
controllers.controller('HomeController', function(filtrosService, httpService) {
var viewModel = this;
viewModel.nombre = 'Antes';
viewModel.especialidades = filtrosService.getEspecialidades();
viewModel.actualizarNombre = function(nombreNuevo){
alert('estoy en actualizar nombre: ' + nombreNuevo);
viewModel.nombre = nombreNuevo;
}
2015-10-15 16:51:19.999 mtouch[6699:1699401] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-9062/DVTFoundation/DeveloperStructure/DVTDeveloperPaths.m:75
Details: setDefaultDeveloperPathsClass: should not be called after the +defaultPaths have already been created.
Object: <DVTDeveloperPaths>
Method: +setDefaultDeveloperPathsClass:
Hints: None
Backtrace:
0 0x000000010e625c5a -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x000000010e62578e _DVTAssertionHandler (in DVTFoundation)
2 0x000000010e6259a5 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010e40321d +[DVTDeveloperPaths setDefaultDeveloperPathsClass:] (in DVTFoundation)
@mauroa
mauroa / a-Sample.cs
Last active October 16, 2015 22:49
Sample of how to make a Reactive and async Process in C#
* Sample 1:
var processInfo = new ProcessStartInfo ();
//TODO: Configure processInfo as desired
try {
//Waiting the process to complete and exit
await new Process().RunAsync(processInfo);
} catch(Exception ex) {
@mauroa
mauroa / MessagingClientSample.cs
Last active January 7, 2016 18:55
Messaging Client sample to retrieve simulators
using System.Net.Mqtt;
using System.Net.Mqtt.Client;
using System.Threading.Tasks;
using Xamarin.Messaging;
using Xamarin.Messaging.Client;
using Xamarin.Messaging.Client.Serialization;
using Xamarin.Messaging.IDB.Contracts;
public class MessagingClientSample
{
@mauroa
mauroa / AsyncProcess.cs
Last active May 10, 2016 20:20
Async Process in C#
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;