This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class EnumerableExtensions | |
{ | |
public static void ForEach<T>(this IEnumerable<T> @this, Action<T> action) | |
{ | |
foreach (T item in @this) | |
{ | |
action(item); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:view="clr-namespace:DemoApp.Views;assembly=DemoApp" | |
x:Class="DemoApp.Views.RootPage" Title="MasterDetailPage Demo"> | |
<MasterDetailPage.Master> | |
<view:MainMenu /> | |
</MasterDetailPage.Master> | |
<MasterDetailPage.Detail> | |
<view:HomePage /> | |
</MasterDetailPage.Detail> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +williamsrz is my blockchain ID. https://onename.com/williamsrz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyController : ApiController | |
{ | |
[HttpPost] | |
[ActionName("myfirstroute")] | |
public string MyFirstPostMethod(JObject userData) | |
{ | |
// do your thing | |
} | |
[HttpPost] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Partiu Azure", | |
"version": "0.0.1", | |
"description": "", | |
"main": "./server.js", | |
"engines": { "node": ">= 0.6.0" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Partiu Azure, PHP</title> | |
</head> | |
<body> | |
<h1>Partiu Azure, PHP</h1> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo brew uninstall node | |
brew update | |
brew upgrade | |
brew cleanup | |
brew install node | |
sudo chown -R username /usr/local | |
brew link --overwrite node | |
sudo brew postinstall node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MonkeyApp.Models | |
{ | |
public class BaseModel | |
{ | |
public string Id { get; private set; } = Guid.NewGuid().ToString(); | |
} | |
public class Content : BaseModel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add using MvvmCross.Binding.iOS.Views.Gestures; | |
var set = this.CreateBindingSet<TheViewController, TheViewModel>(); | |
set.Bind (TheControl.Tap()).For(t => t.Command).To(vm => vm.TheCommand); | |
set.Apply(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add using MvvmCross.Binding.iOS.Views.Gestures; | |
var set = this.CreateBindingSet<TheViewController, TheViewModel>(); | |
set.Bind (TheControl.Tap()).For(t => t.Command).To(vm => vm.TheCommand); | |
set.Apply(); |
OlderNewer