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/bash | |
# Generates changelog day by day | |
# Based on sample from https://stackoverflow.com/questions/2976665/git-changelog-day-by-day | |
BRANCH=${BUILD_SOURCEBRANCHNAME} | |
FILE=${BUILD_STAGINGDIRECTORY}/releasenotes.md | |
TMP=$(mktemp) | |
TODAY=$(date +%Y-%m-%d) | |
YESTERDAY=$(date -v-1d +%Y-%m-%d) | |
THIS_WEEK=$(date -v-7d +%Y-%m-%d) |
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
Observable.FromEventPattern<ViewPager.PageScrolledEventArgs> ( | |
x => _viewPager.PageScrolled += x, | |
x => _viewPager.PageScrolled -= x) | |
.Select (args => args.EventArgs) | |
.StartWith(new ViewPager.PageScrolledEventArgs(0, 0, 0)) | |
.PairWithPrevious() | |
.Skip(1) | |
.Select(args => { | |
var scrollDirection = | |
args.Item1.Position != args.Item2.Position |
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
Observable.FromEventPattern<ViewPager.PageScrolledEventArgs> ( | |
x => _viewPager.PageScrolled += x, | |
x => _viewPager.PageScrolled -= x) | |
.Select (args => args.EventArgs) | |
.StartWith(new ViewPager.PageScrolledEventArgs(0, 0, 0)) | |
.PairWithPrevious() | |
.Skip(1) | |
.Select(args => { | |
var scrollDirection = | |
args.Item1.Position != args.Item2.Position |
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; | |
using Xamarin.Forms; | |
using System.Linq.Expressions; | |
namespace EightBot.XamForms.Extensions | |
{ | |
public static class LayoutExtensions | |
{ | |
public static void Add(this StackLayout sl, View item) { | |
sl?.Children?.Add (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
public static void GenerateViewNames(this UIViewController viewController, bool forceExecution = false){ | |
if(!forceExecution | |
&& | |
( | |
ObjCRuntime.Runtime.Arch != ObjCRuntime.Arch.SIMULATOR | |
|| | |
!UIDevice.CurrentDevice.CheckSystemVersion(8, 0) | |
)) | |
return; |