To unlock these execerises you will need to disabled learning mode.
In Exercism you'll have some exercises to
using System; | |
using System.Buffers; | |
using System.IO.MemoryMappedFiles; | |
namespace VallmoVcdVisualizer.Services | |
{ | |
unsafe class MemoryMappedFileMemory : MemoryManager<byte> | |
{ | |
private readonly MemoryMappedFile mmf; | |
private readonly MemoryMappedViewAccessor ma; |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
//Builder represeting only one entity in DSL | |
type Child1State = {SomeState : string} | |
type Child1Builder () = | |
[<CustomOperation("set_state")>] | |
member __.SetState (st, x) = {st with SomeState = x} |
To unlock these execerises you will need to disabled learning mode.
In Exercism you'll have some exercises to
This assessment is performed with respect to the requirements of the .NET community open source projects which I maintain. It is restricted to the free tier provided by each system.
Only the drawbacks are listed, which makes the assessment sound a bit negative, but it's relative to a baseline functional expectation:
I suggest that you create one or more Api.fs
files to expose F# code in a C# friendly way.
In this file:
PascalCase
names. They will appear to C# as static methods.// The 'compare' function from FSharp.Core returns a magic number to indicate the result | |
// compare : 'T -> 'T -> int when 'T : comparison | |
compare 0 1 //-1 | |
compare 0 0 //0 | |
compare 1 0 //1 | |
// We could clarify our intent | |
type Leg = Less | Equal | Greater | |
type Comparer<'T> = 'T -> 'T -> Leg |
#nowarn "0042" | |
let inline retype (x: 'T) : 'U = (# "" x: 'U #) | |
open System | |
type Curry = | |
static member inline Invoke f = | |
let inline call_2 (a: ^a, b: ^b) = ((^a or ^b) : (static member Curry: _*_ -> _) b, a) | |
call_2 (Unchecked.defaultof<Curry>, Unchecked.defaultof<'t>) (f: 't -> 'r) : 'args |
[ | |
{ | |
"name": "sound", | |
"category": "sensory", | |
"sense_seeking_question": "I have a stim that involves really loud sound, be that music or machinery or something else.", | |
"sensitivity_values": [ | |
"A sound needs to be very loud for me to even notice it.", | |
"I sometimes need to turn the volume up to hear something that others seem to hear just fine", | |
"I've always felt pretty normal here - my experience seems to be in keeping with that of most people around me.", |
module Elmish.Snake | |
(** | |
Timer as a source of events with an SVG clock, by Zaid Ajaj. | |
You can find more info about Emish architecture and samples at https://elmish.github.io/ | |
*) | |
open System | |
open Fable.Import | |
open Fable.Helpers.React |