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
--- ../Repositorios/mono/sdks/builds/toolchains/emsdk/upstream/emscripten/tools/file_packager.py 2019-11-06 18:50:40.000000000 +0100 | |
+++ file_packager.py 2019-11-15 11:26:57.394870824 +0100 | |
@@ -69,13 +69,13 @@ | |
sys.path.insert(1, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
-from tools.toolchain_profiler import ToolchainProfiler | |
-if __name__ == '__main__': | |
- ToolchainProfiler.record_process_start() | |
- |
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
private static void Dump(string path) | |
{ | |
if (!Directory.Exists(path)) | |
{ | |
return; | |
} | |
var dirs = Directory.GetDirectories(path); | |
foreach (var item in dirs) |
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 System.Runtime.InteropServices; | |
using AppKit; | |
using CoreGraphics; | |
using Foundation; | |
using ImageIO; | |
using MobileCoreServices; | |
namespace ScreenshotDemo | |
{ |
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
private RetryPolicy CreateRetryPolicy() => Policy.Handle<Exception>() | |
.WaitAndRetryAsync( | |
Enumerable.Range(0, 3) | |
.Select(_ => TimeSpan.FromSeconds(5)) | |
.ToList()); | |
[...] | |
var policy = CreateRetryPolicy(); | |
TResult result; |
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
<!-- Located at: /Users/marcos/Library/VisualStudio/7.0/Policies/ --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<Policies> | |
<PolicySet name="User Default" id="UserDefault"> | |
<DotNetNamingPolicy inheritsSet="Default" /> | |
<TextStylePolicy inheritsSet="null" scope="text/x-csharp" /> | |
<CSharpFormattingPolicy inheritsSet="Default" inheritsScope="text/x-csharp" scope="text/x-csharp" /> | |
<VersionControlPolicy inheritsSet="Default" /> | |
<TextStylePolicy inheritsSet="Default" inheritsScope="text/plain" scope="text/plain"> | |
<FileWidth>120</FileWidth> |
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 DoubleToTopThicknessConverter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | |
{ | |
double height; | |
try | |
{ | |
height = (double)value; | |
} |
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
void HandleLeftAndRightSwipeGestures(object sender, Xamarin.Forms.PanUpdatedEventArgs e) | |
{ | |
switch (e.StatusType) | |
{ | |
case GestureStatus.Started: | |
lastPanStartedX = e.TotalX; | |
break; | |
case GestureStatus.Running: | |
lastPanRunningX = e.TotalX; | |
break; |
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 FloatingActionMenu = Clans.Fab.FloatingActionMenu; | |
public class AnimateFabAccordingOnScrollListener : Android.Support.V7.Widget.RecyclerView.OnScrollListener | |
{ | |
const int AnimationDuration = 150; | |
readonly FloatingActionMenu _fab; | |
int _lastY; | |
bool _fabTranslated; | |
readonly int _bottomBarHeight; |
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
<!-- Located at: /Users/marcos/Library/VisualStudio/7.0/KeyBindings/ --> | |
<schemes version="1.0"> | |
<scheme name="current"> | |
<binding command="MonoDevelop.Refactoring.RefactoryCommands.FindReferences" shortcut="Meta+'" /> | |
<binding command="MonoDevelop.Refactoring.Navigation.FindDerivedSymbols" shortcut="Meta+¡" /> | |
<binding command="MonoDevelop.Unity.Documentation.UnityDocumentation" shortcut="" /> | |
<binding command="MonoDevelop.UnitTesting.Commands.TestCommands.RunAllTests" shortcut="Meta+T" /> | |
</scheme> | |
</schemes> |
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 override void LayoutSubviews() | |
{ | |
base.LayoutSubviews(); | |
var availableWidth = _myWrappingView.Frame.Width; | |
_myWrappingView.SetPreferredMaxLayoutWidth((float)availableWidth); | |
base.LayoutSubviews(); | |
} |