for j in *.bak; do mv -- "$j" "temp_${j%.bak}.txt"; done
Example:
from:
123.bak
public interface IRemove | |
{ | |
ICommand RemoveCommand { get; } | |
} |
public class BaseViewModel : BaseNotify | |
{ | |
bool _isBusy = false; | |
CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource(); | |
public bool IsBusy | |
{ | |
get | |
{ | |
return _isBusy; |
public class CarouselIndicators : Grid | |
{ | |
private ImageSource UnselectedImageSource = null; | |
private ImageSource SelectedImageSource = null; | |
private readonly StackLayout _indicators = new StackLayout() { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.CenterAndExpand }; | |
public CarouselIndicators() | |
{ | |
this.HorizontalOptions = LayoutOptions.CenterAndExpand; | |
this.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto }); |
// (c) 2016 Yauheni Pakala | |
var _parseInt = str => str.replace(/(.*?)(\d+)(.*)/,'$2') - 0; | |
// test | |
console.log(_parseInt("123hui")); | |
console.log(_parseInt("123hui321")); | |
console.log(_parseInt("hui123")); |
public class ViewPagerIndicator : LinearLayout, ViewPager.IOnPageChangeListener | |
{ | |
private TextView _textView; | |
private ViewPager _viewPager; | |
#region Android view dafault constructors | |
public ViewPagerIndicator(Context context) | |
: base(context) | |
{ |
for j in *.bak; do mv -- "$j" "temp_${j%.bak}.txt"; done
Example:
from:
123.bak
// Wire up Unhandled Expcetion handler from Android
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) =>
{
/*
* When the UI Thread crashes this is the code that will be executed. There is no context at this point
* and no way to recover from the exception. This is where you would capture the error and log it to a
* file for example. You might be able to post to a web handler, I have not tried that.
*
// (c) 2017 Yauheni Pakala | |
(function(p,l){l.protocol===p||(l.protocol=p)}("https:",window.location)) |
192.168.0.2
(fiddler machine IP)192.168.0.2
var handler = new HttpClientHandler
{
UseProxy = true,
:: /t:Rebuild /p:Configuration=Debug | |
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe" ProgressDownload\ProgressDownload.csproj /t:Clean | |
:: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe" ProgressDownload\ProgressDownload.csproj /t:Build /p:Configuration=Debug /t:SignAndroidPackage |