Skip to content

Instantly share code, notes, and snippets.

View darbio's full-sized avatar

JD darbio

View GitHub Profile
FAULT: **********************************************************************
FAULT: Appliance : MachineName (OS v3.0.4, NMS v3.0.4 (r8917))
FAULT: Machine SIG : AAAAAAAA
FAULT: Primary MAC : 0:0:0:0:0:0
FAULT: Time : Fri Jun 15 00:00:46 2012
FAULT: Trigger : runners-check
FAULT: Fault Type : ALARM
FAULT: Fault ID : 20
FAULT: Fault Count : 2
FAULT: Severity : NOTICE
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
BeginInvokeOnMainThread (delegate () {
this.Root = CreateRoot ();
});
}
RootElement CreateRoot ()
class MyTabBarController () : UITabBarController
{
public MyTabBarController () : base ()
{
}
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
window = new UIWindow (UIScreen.MainScreen.Bounds);
navigation = new UINavigationController();
var tabController = new MyTabBarController ();
navigation.PushViewController (tabController, true);
window.RootViewController = navigation;
@darbio
darbio / gist:3002292
Created June 27, 2012 07:53 — forked from monotocho/gist:3001973
Selected custom element
//********************
//Navigate to DVC1 !!!
//********************
namespace EMALI
{
public partial class vPtoVentaTipo : DialogViewController
{
public int PaginaIndex { get; set; }
@darbio
darbio / gist:3175607
Created July 25, 2012 11:18
Mono MVC 3 Exception
Listening on port: 8080 (non-secure)
Hit Return to stop the server.
An exception has occurred while generating HttpException page:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig () [0x00000] in <filename unknown>:0
at System.Lazy`1[System.Web.Util.HttpEncoder].InitValue () [0x00000] in <filename unknown>:0
The actual exception which was being reported was:
System.Web.HttpException: ---> System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x00000] in <filename unknown>:0
@darbio
darbio / README.markdown
Created September 5, 2012 02:44 — forked from morkeleb/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using IQX.TAS.View.Mobile;
using MonoTouch.AtmHud;
BeginInvokeOnMainThread(() => {
_descriptionElement.Highlight();
this.TableView.SetNeedsDisplay();
});
public void Highlight()
{
var cell = base.GetCell (GetContainerTableView());
cell.TextLabel.TextColor = UIColor.Red;
}
@darbio
darbio / ActionSheetDatePicker.cs
Created November 11, 2012 01:33
UIActionSheet with iPad support
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
public class ActionSheetDatePicker {
#region -= declarations =-