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 void PinchGesturePinchUpdated(object sender, PinchGestureUpdatedEventArgs e) | |
{ | |
if(e.Status == GestureStatus.Started) | |
{ | |
AmbientControl = AmbientControl.Zoom; | |
StartCanvasScale = CanvasScale; | |
} | |
else if(e.Status == GestureStatus.Running) | |
{ | |
var factor = (e.Scale - 1); |
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 IEnumerable<Layer> BuildAggregateDimensionLayer(string entityId, Dimension dimension, IEnumerable<DimensionAnalysisResult> dimensionResults) | |
{ | |
if (dimensionResults.Any()) | |
{ | |
var entityInformation = LibraryInformationFetcher.FetchEntityInformation(entityId); | |
if (entityInformation?.Dimensions != null) | |
{ | |
var insertDimension = entityInformation.Dimensions.Insert; | |
if (dimension != null) |
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 Draw.Application.Aplication; | |
using Draw.Application.Helpers; | |
using Draw.Application.Helpers.Managers.Commands; | |
using Draw.Application.Ressources.Languages; | |
using Draw.Core.Extensions; | |
using Draw.Core.Helpers; | |
using Draw.Math.Helpers; | |
using Draw.Math.Models; | |
using Draw.Models.DraftModels; | |
using Draw.Models.WallModels; |
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 Draw.Core.Extensions; | |
using Draw.Math.Models; | |
using SkiaSharp.Views.Forms; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Internals; | |
using Ext = Draw.Core.Extensions.NumbersExtensions; | |
namespace Draw.Application.DrawSpace | |
{ | |
public class Ambient2D : StackLayout |
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 (var newImage = new Bitmap(width:wid, height:hei)) | |
{ | |
using(Graphics g = Graphics.FromImage(newImage)) | |
{ | |
var imageWidth = this.RayTracerView?.Size.Width ?? 64; | |
var imageHeight = this.RayTracerView?.Size.Height ?? 64; | |
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High; | |
g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; | |
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; |
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 Bitmap CaptureControl(Control control) | |
{ | |
Bitmap controlBmp; | |
using (var g1 = control.CreateGraphics()) | |
{ | |
controlBmp = new Bitmap(control.Width, control.Height, g1); | |
using (var g2 = Graphics.FromImage(controlBmp)) | |
{ | |
var dc1 = g1.GetHdc(); | |
var dc2 = g2.GetHdc(); |
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
@echo off | |
echo ===========Adb server restart script=========== | |
echo Author: Felipe Baltazar | |
echo Github:https://github.com/felipebaltazar | |
echo Creation Date: 24/08/2018 | |
echo. | |
echo. | |
echo ====================Status===================== | |
echo Checking adb default path... | |
call CD %HomePath%\AppData\Local\Android\sdk\platform-tools |
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
@echo off | |
echo =================Proxy setup script================= | |
echo Author: Felipe Baltazar | |
echo Github:https://github.com/felipebaltazar | |
echo Creation Date: 28/08/2018 | |
echo. | |
echo. | |
echo ======================Status========================= | |
CD %HomePath%\AppData\Roaming\npm | |
echo [%time%] Trying start npm module |
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 string FiltrarConteudoHTML(string sTexto) { | |
var textOnly = sTexto; | |
var output = new StringBuilder(); | |
var htmlDoc = new HtmlDocument(); | |
try { | |
htmlDoc.LoadHtml(sTexto); | |
htmlDoc.DocumentNode.Descendants() | |
.Where(n => n.Name == "script" || n.Name == "comment" || n.Name == "div") | |
.ToList() |
OlderNewer