Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🇺🇸

Dustin Farris dustinfarris

💭
🇺🇸
View GitHub Profile
View elm-package.json
// elm-package.json
{
"version": "1.0.0",
"summary": "Web client for IndustryMaps",
"repository": "https://github.com/dustinfarris/industrymaps.git",
"license": "Private",
"source-directories": [
"elm"
],
View PersonTest.elm
module PersonTest exposing (..)
import Expect
import Fuzz exposing (int, string)
import Json.Decode exposing (decodeValue)
import Json.Encode as Json
import Person exposing (..)
import Test exposing (..)
View TestHelpers.elm
import Fuzz exposing (Fuzzer)
import Json.Encode as Json
jsonInt : Fuzzer ( Int, Json.Value )
jsonInt =
Fuzz.map
(\i -> ( i, Json.int i ))
Fuzz.int
View Person.elm
module Person exposing (..)
import Json.Decode exposing (Decoder, int, string)
import Json.Decode.Pipeline exposing (decode, required)
type alias Person =
{ id : Int
, firstName : String
, lastName : String
@dustinfarris
dustinfarris / brunch-config.js
Created Mar 15, 2017
brunch config for using Elm with Phoenix 1.3-rc.0
View brunch-config.js
exports.config = {
files: {
javascripts: {
joinTo: "js/app.js"
},
stylesheets: {
joinTo: "css/app.css"
},
templates: {
View keybase.md

Keybase proof

I hereby claim:

  • I am dustinfarris on github.
  • I am dustinfarris (https://keybase.io/dustinfarris) on keybase.
  • I have a public key whose fingerprint is 420A A8DF 2A3C C6ED 0B37 CD3C A0ED F4AC 179A A10A

To claim this, I am signing this object:

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@dustinfarris
dustinfarris / vimrc
Last active Dec 19, 2016
flexi users: add this to your .vimrc
View vimrc
" Highlight special tags defined by flexi
autocmd BufEnter *.hbs,*.js syn keyword htmlTagName screen page fill centered grid box hbox vbox container
View components.capitals.js
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
import connect from 'ember-redux/components/connect';
import { cashay } from 'cashay';
const capitalsQuery = `
{
missouriCapital: capital(state: MISSOURI) {
name
size(unit: SQ_MI)
You can’t perform that action at this time.