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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets | |
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>MvvmCross command</Title> | |
<Shortcut>cmvx</Shortcut> | |
<Description>Code snippet for MvvmCross command</Description> | |
</Header> |
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":"Son Of Obsidian", | |
"version":"1.0", | |
"originator":"Imported from /Users/ole/Library/XamarinStudio-4.0/HighlightingSchemes/son-of-obsidian.vssettings", | |
"baseScheme":"son-of-obsidian", | |
"colors":[ | |
{"name": "Fold Cross", "color":"#A29191", "secondcolor":"#E2E2E2" } ], | |
"text":[ | |
{"name": "Selected Text", "fore":"#FFFFFF", "back":"#43686C" }, | |
{"name": "Selected Text(Inactive)", "back":"#385A5E" } |
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
Shortcut: cmvx | |
Group: C# | |
Description: ICommand | |
Mime: text/x-csharp | |
Template text: | |
ICommand _$myCommand$; |
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
#!/bin/sh | |
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png |
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
class CounterState | |
{ | |
public CounterState(int count) { Count = count; } | |
public int Count { get; } | |
} |
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
class IncrementAction { } | |
class DecrementAction { } |
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
class CounterReducer | |
{ | |
public CounterState Reduce(CounterState state, object action) | |
{ | |
switch (action) | |
{ | |
case IncrementAction i: | |
return ProcessIncrement(state); | |
case DecrementAction d: | |
return ProcessDecrement(state); |
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
class CounterStore : INotifyPropertyChanged | |
{ | |
private readonly CounterReducer reducer = new CounterReducer(); | |
private CounterState state; | |
public CounterStore(CounterState initialState) | |
{ | |
state = initialState; | |
} |
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 TransitionAnimator : UIViewControllerAnimatedTransitioning | |
{ | |
private const double _duration = 0.5; | |
public override void AnimateTransition(IUIViewControllerContextTransitioning transitionContext) | |
{ | |
var containerView = transitionContext.ContainerView; | |
var toView = transitionContext.GetViewFor(UITransitionContext.ToViewKey); | |
containerView.AddSubview(toView); |
OlderNewer