Skip to content

Instantly share code, notes, and snippets.

@hossambarakat
hossambarakat / build.fsx
Last active August 29, 2015 14:24 — forked from jacano/build.fsx
#r @"Tools/FAKE/tools/FakeLib.dll"
#load "Tools/build-helpers.fsx"
#load "Tools/hockey-app-helpers-mac.fsx"
open Fake
open System
open System.IO
open System.Linq
open System.Text.RegularExpressions
open BuildHelpers
module BuildHelpers
open Fake
open Fake.XamarinHelper
open System
open System.IO
open System.Linq
let Exec command args =
let result = Shell.Exec(command, args)
Function Set-ConnectionString{
[CmdletBinding(SupportsShouldProcess=$True)]
Param(
[string]$fileName="app.config",
[string]$connectionStringName,
[string]$connectionString
)
$config = [xml](Get-Content -LiteralPath $fileName)
using System;
using Xamarin.Forms;
using System.Collections;
namespace YourNamespace.Views.Controls {
public class BindablePicker : Picker
{
public BindablePicker()
{
this.SelectedIndexChanged += OnSelectedIndexChanged;
@hossambarakat
hossambarakat / git.config
Created July 18, 2013 15:43 — forked from NickJosevski/git.config
Beyond Compare Git Config
## .gitconfig
[alias]
dt = difftool
mt = mergetool
[diff]
tool = bc3
[difftool]
prompt = false
[difftool "bc3"]
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Web.Http.Dependencies;
using Ninject;
using Ninject.Syntax;
public class NinjectDependencyScope : IDependencyScope
{
private IResolutionRoot resolver;