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 / Brocfile.js
Created Jun 12, 2014
My setup for building an Angular.js app with Broccoli & grunt
View Brocfile.js
var ngMin = require('broccoli-ng-min');
var uglify = require('broccoli-uglify-js');
var compileSass = require('broccoli-ruby-sass');
var pickFiles = require('broccoli-static-compiler');
var mergeTrees = require('broccoli-merge-trees');
var findBowerTrees = require('broccoli-bower');
var env = require('broccoli-env').getEnv();
var compileES6 = require('broccoli-es6-concatenator');
var app = 'app/scripts';
View Main.elm
module Main exposing (..)
import Html exposing (Html, program, text)
import MountableProgram as Mountable exposing (Mountable, mountableProgram)
import Time
type alias Model =
joefiorini / rails.nix
Created Sep 18, 2014
Nix Expression for Running Rails Apps
View rails.nix
with (import <nixpkgs> {});
stdenv.mkDerivation {
name = "717-app";
buildInputs = [ libiconv openssl ruby21 postgresql git nodejs ];
src = "/src/717";
builder = builtins.toFile "" ''
set -e
source $stdenv/setup
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)
joefiorini / private.rb
Created Jun 27, 2011
Indent methods under private?
View private.rb
class Blah
def method1
def method2
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)
You can’t perform that action at this time.