Skip to content

Instantly share code, notes, and snippets.

Avatar
📱
Working

François Raminosona framinosona

📱
Working
View GitHub Profile
View singleton.snippet
<?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>
@framinosona
framinosona / Scrcpy.sh
Last active Oct 6, 2019
Bash script that installs scrcpy for you if needed and starts it
View Scrcpy.sh
#!/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
using System;
using System.Runtime.CompilerServices;
using System.Text;
using NLog;
namespace LoggingDemo.Helpers
{
public static class Logging
{
private static Logger _logger; //NLog logger
@framinosona
framinosona / HapticFeedbackHelperIOS.cs
Last active Dec 28, 2018
iOS implementation of the Haptic Feedback Helper
View HapticFeedbackHelperIOS.cs
//
// 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
<?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
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
"[\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\"
You can’t perform that action at this time.