View singleton.snippet
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> | |
<Keywords> | |
<Keyword>Singleton</Keyword> | |
</Keywords> | |
<Title>singleton</Title> | |
<Author>Francois Raminosona</Author> | |
<Description>Adds a singleton pattern to the current class</Description> |
View Scrcpy.sh
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
#!/usr/bin/env bash | |
# | |
# Script to start Scrcpy | |
if test ! $(which scrcpy); then | |
echo "Starting installation" | |
# Check for Homebrew, install if we don't have it | |
if test ! $(which brew); then |
View Logging.cs
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.CompilerServices; | |
using System.Text; | |
using NLog; | |
namespace LoggingDemo.Helpers | |
{ | |
public static class Logging | |
{ | |
private static Logger _logger; //NLog logger |
View HapticFeedbackHelperIOS.cs
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
// | |
// HapticFeedbackHelperIOS.cs | |
// | |
// Author: | |
// Francois Raminosona <framinosona@hotmail.fr> | |
// | |
// Copyright (c) 2018 Francois Raminosona | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal |
View Unresponsive UI
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"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="My.App.Main"> | |
<ContentView.Content> | |
<RelativeLayout Padding="0"> | |
<!-- Background --> | |
<Image Aspect="AspectFill" Source="bg.png" RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width}" RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height}"/> | |
<Grid RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width}" RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height}"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="0.1*" /> | |
<ColumnDefinition Width="*" /> |
View gist:3f28dacf0db01bf596aea87af87d1a1b
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
protected override async void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
base.OnNavigatedTo(e); | |
Debug.WriteLine("Debut"); | |
var file = await SaveAsync(new Uri("Ton ZIP")); | |
Debug.WriteLine($"Downloaded : {file.Path}"); | |
} |
View AntoJson.json
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
"[\n {\n \"_id\": \"57d826906005256a77fb168c\",\n \"picture\": \"http://placehold.it/32x32\",\n \"name\": \"Payne Travis\",\n \"company\": \"COMVENE\",\n \"email\": \"paynetravis@comvene.com\",\n \"tel\": \"+33 (803) 430-2562\",\n \"about\": \"Exercitation nisi laboris duis amet in enim pariatur. Eu consequat ut culpa nisi voluptate ullamco incididunt cillum officia. Occaecat duis adipisicing esse est qui magna nulla.\\r\\n\",\n \"job\": \"Product Manager\",\n \"twitter\": \"@Payne124\"\n },\n {\n \"_id\": \"57d82690d452d5eca7cad9d2\",\n \"picture\": \"http://placehold.it/32x32\",\n \"name\": \"Anthony Ashley\",\n \"company\": \"CONFRENZY\",\n \"email\": \"anthonyashley@confrenzy.com\",\n \"tel\": \"+33 (907) 453-3823\",\n \"about\": \"Lorem esse fugiat est qui irure labore. Nulla culpa sunt voluptate velit sit exercitation aliqua voluptate adipisicing exercitation. Ullamco tempor ipsum in mollit do laborum ad laboris consectetur magna ut nulla dolor.\\r\\n\" |