Skip to content

Instantly share code, notes, and snippets.

View TimLariviere's full-sized avatar
📱

Timothé Larivière TimLariviere

📱
View GitHub Profile
@TimLariviere
TimLariviere / TodoList.fs
Last active August 30, 2020 16:57
Todo list app in Fabulous.XamarinForms
namespace TodoList
module App =
type Todo =
{ Task: string }
type Model =
{ Todos: Todo list
EntryText: string }
@TimLariviere
TimLariviere / Xamarin.Forms.Core.fs
Created November 29, 2019 20:12
The generated Xamarin.Forms.Core.fs for Fabulous.XamarinForms (Version of 2019-11-29)
This file has been truncated, but you can view the full file.
// Copyright 2018-2019 Fabulous contributors. See LICENSE.md for license.
namespace Fabulous.XamarinForms
#nowarn "59" // cast always holds
#nowarn "66" // cast always holds
#nowarn "67" // cast always holds
open Fabulous
module ViewAttributes =
@TimLariviere
TimLariviere / CurrencyConverter.fs
Last active October 17, 2018 15:00
CurrencyConverter demo for Fabulous meet up
namespace CurrencyConverter
open System.Diagnostics
open Fabulous.Core
open Fabulous.DynamicViews
open Xamarin.Forms
open Newtonsoft.Json
open System.Net.Http
module CurrencyService =
fscd: ERROR SENDING TO WEBHOOK: "System.Exception: FSharp.Compiler.Service cannot yet return this kind of pattern match at /Git/Test/DemoCurrencyApp/DemoCurrencyApp/DemoCurrencyApp.fs (9,9--9,12) IsSynthetic=false
at Microsoft.FSharp.Compiler.SourceCodeServices.ExprTranslationImpl.wfail[a] (System.String msg, Microsoft.FSharp.Compiler.Range+range m) [0x0002d] in <5b1072e5033d4b1da7450383e572105b>:0
at Microsoft.FSharp.Compiler.SourceCodeServices.FSharpExprConvert.ConvDecisionTreePrim (Microsoft.FSharp.Compiler.SourceCodeServices.SymbolEnv cenv, Microsoft.FSharp.Compiler.SourceCodeServices.ExprTranslationImpl+ExprTranslationEnv env, Microsoft.FSharp.Compiler.Tast+TType dtreeRetTy, Microsoft.FSharp.Compiler.Tast+DecisionTree x) [0x0003c] in <5b1072e5033d4b1da7450383e572105b>:0
at Microsoft.FSharp.Compiler.SourceCodeServices.FSharpExprConvert.ConvDecisionTree (Microsoft.FSharp.Compiler.SourceCodeServices.SymbolEnv cenv, Microsoft.FSharp.Compiler.SourceCodeServices.ExprTranslationImpl+ExprTranslationEnv e
#include "Uniforms.glsl"
#include "Samplers.glsl"
#include "Transform.glsl"
#include "ScreenPos.glsl"
#ifdef COMPILEPS
uniform vec2 cCloudsOffset;
uniform vec4 cSpecColor;
#endif
@TimLariviere
TimLariviere / ElmishXamarinForms-ComponentSample.fs
Created August 9, 2018 11:43
Component sample with Elmish.XamarinForms
module MyComponent =
type Msg = | Increment | Decrement
type Model = { Count : int }
let init () = { Count = 0 }
let update msg model =
match msg with
| Increment -> { Count = model.Count + 1 }
@TimLariviere
TimLariviere / gist:b6ee58db1f73751b7fb0775e991094a1
Created March 17, 2018 18:47
Second-time login with func.exe
timothes-mbp:netstandard2.0 timothelariviere$ func azure functionapp publish scratchworld-backend-dev
Publish /Git/Elgom/ScratchWorld/Backend/ScratchWorld.Backend/bin/Debug/netstandard2.0 contents to an Azure Function App. Locally deleted files are not removed from destination.
Getting site publishing info...
Sequence contains no elements
@TimLariviere
TimLariviere / gist:c6613cd6d1396a6a88d7866c6ee6d952
Last active March 17, 2018 18:59
First-time login with func.exe
timothes-mbp:netstandard2.0 timothelariviere$ func azure functionapp publish scratchworld-backend-dev
Publish /Git/Elgom/ScratchWorld/Backend/ScratchWorld.Backend/bin/Debug/netstandard2.0 contents to an Azure Function App. Locally deleted files are not removed from destination.
Getting site publishing info...
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code CHKL29563 to authenticate.
Logging into [GUID-1]
Logging into [GUID-2]
Logging into [GUID-3]
Logging into [GUID-4]
Logging into [GUID-5]
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code CQ4558WV2 to authenticate.