Skip to content

Instantly share code, notes, and snippets.

public virtual async Task<AccountsResponse> RegisterAsync(string username, string emailAddress, string password, string twitterId = "", string facebookId = "")
{
// TODO : Validate the arguments
AccountsResponse accountResponse = null;
List<KeyValuePair<string, string>> values = new List<KeyValuePair<string, string>> ();
values.Add(new KeyValuePair<string, string>("emailaddress", emailAddress));
values.Add(new KeyValuePair<string, string>("username", username));
values.Add(new KeyValuePair<string, string>("password", password));
{
"ErrorMessage":null,
"Reports":[
{
"Id":1,
"Username":"Richard Adams",
"ThumbnailUri":"http://tellat.blob.core.windows.net/videos/thumbnail01.jpg",
"VideoUri":"http://tellat.blob.core.windows.net/videos/video03.mp4",
"Text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel tincidunt elit. Ut id elit sit amet purus interdum blandit. Aenean facilisis feugiat urna, id pretium purus feugiat ut. Vivamus augue lacus, mattis et dolor at, posuere molestie magna. Aenean ut aliquet dolor. Sed aliquet rhoncus aliquet. Aliquam luctus purus nec pellentesque commodo."
},
@wayne-o
wayne-o / gist:8179431
Created December 30, 2013 08:35
MvvmCross Droid.Dialog TextEdit losing focus
UpdateCellDisplay()
public View GetView(Context context, View convertView, ViewGroup parent)
UpdateCellDisplay()
public View GetView(Context context, View convertView, ViewGroup parent)
UpdateCellDisplay()
[Choreographer] Skipped 37 frames! The application may be doing too much work on its main thread.
public View GetView(Context context, View convertView, ViewGroup parent)
UpdateCellDisplay()
public View GetView(Context context, View convertView, ViewGroup parent)
UpdateCellDisplay()
@wayne-o
wayne-o / gist:8002854
Created December 17, 2013 10:25
multiline edit for mvvmcross
/// <summary>
/// An element that can be used to enter text.
/// </summary>
/// <remarks>
/// This element can be used to enter text both regular and password protected entries.
///
/// The Text fields in a given section are aligned with each other.
/// </remarks>
public class SimpleMultilineEntryElement : ValueElement<string>, IElementSizing
{
var button1 = new UIButton (UIButtonType.Custom) ;
var button2 = new UIButton (UIButtonType.Custom) ;
button1.SetBackgroundImage (UiHelper.Screen2_Button2, UIControlState.Normal);
button2.SetBackgroundImage (UiHelper.Screen2_Button1, UIControlState.Normal);
var frame1 = button1.Frame;
var frame2 = button2.Frame;
frame1.Height = UiHelper.Screen2_Button1.Size.Height;
frame1.Width = UiHelper.Screen2_Button1.Size.Width;
@wayne-o
wayne-o / gist:8002890
Created December 17, 2013 10:29
Side by side buttons
public class SafeClaimDoubleButton : Element, IElementSizing{
UIButton button1;
UIButton button2;
public ICommand Command1 { get;set; }
public ICommand Command2 { get;set; }
public SafeClaimDoubleButton (UIButton b1,UIButton b2, string caption): base(caption)
{
this.button1 = b1;
@wayne-o
wayne-o / gist:7717708
Created November 30, 2013 11:02
Simple webContentElement for iOS dialog
public class WebContentElement : Element, IElementSizing
{
public enum CellFlags
{
Transparent = 1,
DisableSelection = 2
}
private readonly NSString _key;
<?php
include "../classes/mvc/models/apiClient/apiClient_AbstractWrapper.php";
include "../classes/mvc/models/EventProfileModel.php";
include "../../atsumi/classes/mvc/controllers/mvc_AbstractController.php";
include "../classes/mvc/controllers/AbstractController.php";
/**
* Created by JetBrains PhpStorm.
* User: wayne
static class ForConnectivityManager
{
private const string DebugTag = "YOUR_APP_NAME";
static IntPtr _connectivityManagerSetMobileDataEnabled;
public static bool IsMobileDataEnabled(this ConnectivityManager manager)
{
var netInfo = manager.GetNetworkInfo(ConnectivityType.Mobile);
return manager.NetworkStatus() != NetworkState.NoNetwork;
iisreset /stop
#release path
$raven = "D:\PathToDataDirs\Deployment"
#set the paths for the dbs:
$databases = "D:\PathToDataDirs\Beta\Act\", "D:\PathToDataDirs\Beta\Conversation\","D:\PathToDataDirs\Beta\Location\","D:\PathToDataDirs\Beta\Event\"
foreach($db in $databases){
Remove-Item $db\* -force -recurse -erroraction silentlycontinue -exclude *.config,Data