Skip to content

Instantly share code, notes, and snippets.

View benthepoet's full-sized avatar

Ben Hanna benthepoet

View GitHub Profile
@benthepoet
benthepoet / Main.elm
Created July 26, 2017 02:13 — forked from anonymous/Main.elm
Form Event Bubbling
module Main exposing (..)
import Html exposing (Html, beginnerProgram, div, form, textarea)
import Html.Attributes exposing (name)
import Html.Events exposing (on)
import Json.Decode as Json
import Dict exposing (Dict)
type alias Model =
@benthepoet
benthepoet / qunit.teamcity.js
Last active December 27, 2015 22:59 — forked from kir/qunit.teamcity.js
A modified version of the QUnit Team City output. Needed to add a special variable to track the beginning and end of a module because testSuiteFinished were being misplaced or duplicated. Needed to escape the test names in order to use apostrophes. Also added a snippet that sets up window.console.log() as a blank function when it's not present. …
(function (QUnit) {
if (!window.console) {
window.console = {
log: function () { }
};
}
var tcEscape = function (str) {
str = str ? str.toString() : "";