Skip to content

Instantly share code, notes, and snippets.

View gchiaramonte's full-sized avatar

Gene Chiaramonte gchiaramonte

  • Complexus Ltd.
  • Bermuda
View GitHub Profile
@gchiaramonte
gchiaramonte / atom_clojure_setup.md
Created February 9, 2017 14:37 — forked from jasongilman/atom_clojure_setup.md
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

@gchiaramonte
gchiaramonte / Counter.fs
Created September 17, 2016 11:28 — forked from Tarmil/Counter.fs
Port of the first example from https://github.com/evancz/elm-architecture-tutorial to WebSharper
namespace Example1
open WebSharper
open WebSharper.UI.Next
open WebSharper.UI.Next.Html
open WebSharper.UI.Next.Client
[<JavaScript>]
module Counter =
@gchiaramonte
gchiaramonte / Pure ADT State.fs
Created August 13, 2016 11:09 — forked from bryanedds/Pure ADT State.fs
Pure ADT State
open FSharpx.State
/// A tic-tac-toe piece, or the absence thereof.
type Piece = U | X | O
/// Tic-tac-toe board position.
type Position = { X : int; Y : int }
[<AutoOpen>]
module GameModule =
open System
open FSharpx.Reader
[<AutoOpen>]
module LoggerModule =
/// A fake logger type.
type Logger =
private { __ : unit }
open System
[<AutoOpen>]
module LoggerModule =
/// A fake logger type.
type Logger =
private { __ : unit }
[<RequireQualifiedAccess; CompilationRepresentation (CompilationRepresentationFlags.ModuleSuffix)>]
/// A tic-tac-toe piece, or the absence thereof.
type Piece = U | X | O
/// Tic-tac-toe board position.
type Position = { X : int; Y : int }
[<AutoOpen>]
module GameModule =
/// A tic-tac-toe game implemented as a Pure ADT.
#time "on"
#load "Bootstrap.fsx"
open System
open Akka.Actor
open Akka.Configuration
open Akka.FSharp
open Akka.TestKit
// #Using Actor