Skip to content

Instantly share code, notes, and snippets.

View second-test.elm
module WebSocketTests exposing (..)
import Test exposing (..)
import Expect
import Elmer
import Elmer.Html as Markup
import Elmer.Html.Event as Event
import Elmer.Spy as Spy exposing (Spy, andCallFake)
import Elmer.Spy.Matchers exposing (wasCalledWith, stringArg)
import WebSocket
View app-first-test.elm
module App exposing
( Model
, defaultModel
, view
, update
)
import Html exposing (Html)
import Html.Attributes as Attr
View initial-state-test.elm
module WebSocketTests exposing (..)
import Test exposing (..)
import Expect
import Elmer exposing (hasLength)
import Elmer.Html as Markup
import Elmer.Html.Matchers exposing (elements)
import App
viewTests : Test
View gist:6d2573ea230e13a87da7
https://pie6.rtp.lab.emc.com/projects/EDA/repos/fbdl-data-catalog/browse/README.md?at=develop
View gist:04cf4107a79cac8c96c2
package io.pivotal.springSchool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
View gist:da76812c00669b2c4153
{"app_id":"090187aa-47ee-35e7-62a1-20e2f6fa5d8c","search_id":"f86fdb22-30f9-4156-a922-8bef9bc3d506","data_source_query":[{"dsid":1,"query":{"or":[{"field":"all_sender_recipient","operation":"SUBSTR","value":"alanaegaymon"}],"and":[{"field":"Body","operation":"SUBSTR","value":"the"},{"field":"Date","operation":"\u003e=","value":"1970-02-26T00:00:00Z"},{"field":"Date","operation":"\u003c=","value":"2015-05-07T00:00:00Z"}]},"functions":[{"field":"childcount","operation":"SUM"},{"field":"Date","operation":"MIN"},{"field":"Date","operation":"MAX"}]}]}
View gist:1e4da3c1764e79d342da
{
"app_id": "090187aa-47ee-35e7-62a1-20e2f6fa5d8c",
"search_id": "40aacc98-3d37-4ae9-a900-0d98410721cb",
"data_source_query": [
{
"dsid": 1,
"query": {
"or": [
{
"field": "all_sender_recipient",
View gist:9482cbf1c473ec4c9cbf
{
"app_id": "090187aa-47ee-35e7-62a1-20e2f6fa5d8c",
"search_id": "40aacc98-3d37-4ae9-a900-0d98410721cb22",
"data_source_query": [
{
"dsid": 1,
"query": {
"or": [
{
"field": "all_sender_recipient",
View gist:9accf220e86db3b6c030
{"app_id":"090187aa-47ee-35e7-62a1-20e2f6fa5d8c","search_id":"249e7155-e275-4406-bf89-a62177c5d7cd","data_source_query":[{"dsid":3,"query":{"or":[{"field":"all_sender_recipient","operation":"SUBSTR","value":"moshe@place.com"}],"and":[{"field":"META_KEYWORD_FIELD","operation":"SUBSTR","value":"Castle"},{"field":"Date","operation":"\u003e=","value":"1900-01-01"},{"field":"Date","operation":"\u003c=","value":"2500-01-01"}]},"functions":[{"field":"childcount","operation":"SUM"}]}]}
View gist:b014610dca8342a08116
{
"app_id": "0901877aa-47ee-35e7-62a1-20e2f6fa5d8c",
"search_id": "137cfac2-7333-40d6-a323-c913463a61ce",
"data_source_query": {
"dsid": 1,
"query": {
"or": [
{
"field": "all_sender_recipient_list",
"operation": "SUBSTR",