Skip to content

Instantly share code, notes, and snippets.

Joe Fiorini joefiorini

Block or report user

Report or block joefiorini

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
joefiorini / init.vim
Created Sep 3, 2019
My 2019 NeoVim Config
View init.vim
" == VIM PLUG ================================
call plug#begin('~/.vim/plugged')
"------------------------ COC ------------------------
" coc for tslinting, auto complete and prettier
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
" coc extensions
let g:coc_global_extensions = ['coc-eslint', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-yank', 'coc-prettier', 'coc-import-cost', 'coc-svg', 'coc-gitignore', 'coc-lists', 'coc-snippets', 'coc-git', 'coc-pairs', 'coc-marketplace', 'coc-stylelint', 'coc-jest', 'coc-project', 'coc-vimlsp']
"------------------------ VIM TSX ------------------------
View Main.elm
module Main exposing (..)
import Html exposing (Html, program, text)
import MountableProgram as Mountable exposing (Mountable, mountableProgram)
import Time
type alias Model =
View Main.elm
module Main exposing (..)
type alias Point =
( Int, Int )
printNums =
( x1, y1 ) =
type bn;
type bigNumber;
type hex =
| Hex(string);
type address =
| Address(string);
View Main.hs
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
import Network.Ethereum.Web3
import Network.Ethereum.Web3.TH
import System.Environment (getEnv)
import Control.Monad.IO.Class (liftIO)
import Data.Text (unpack)
import Data.String (fromString)
View Command.fs
module Command
open ServiceA
open ServiceB
let run params =
// How do I refer to the ServiceConfig modules in here?
joefiorini /
Created Apr 4, 2017
My First ReasonML Component
module Echo = {
include ReactRe.Component.Stateful;
let name = "Echo";
type props = unit;
type state = {message: option string};
let getInitialState _ => {message: None};
let handleChange _ event => {
let value = (ReactDOMRe.domElementToObj ( event))##value;
Some {message: Some value}
joefiorini / config.el
Created Apr 3, 2017
Spacemacs reason-mode layer
View config.el
(spacemacs|define-jump-handlers reason-mode)
View runwhile
#!/usr/bin/env fish
set -l num_runs 0
while true;
echo "Executing: $argv"
eval "$argv"
View Routes.scala
package fitwell.api
import akka.http.scaladsl.model.HttpResponse
import akka.http.scaladsl.server.Directives._
import akka.http.scaladsl.model.StatusCodes._
import scala.concurrent.ExecutionContextExecutor
import sangria.parser.QueryParser
import sangria.execution.Executor
You can’t perform that action at this time.