Skip to content

Instantly share code, notes, and snippets.

View framinosona's full-sized avatar
📱
Working

François Raminosona framinosona

📱
Working
View GitHub Profile
"[\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\"
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}");
}
<?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="*" />
@framinosona
framinosona / HapticFeedbackHelperIOS.cs
Last active December 28, 2018 14:03
iOS implementation of the Haptic Feedback Helper
//
// 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
@framinosona
framinosona / Logging.cs
Last active February 25, 2019 11:34
NLog sample
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 / Scrcpy.sh
Last active October 6, 2019 09:53
Bash script that installs scrcpy for you if needed and starts it
#!/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
<?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>