Skip to content

Instantly share code, notes, and snippets.

{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, RankNTypes, RecordWildCards, TemplateHaskell #-}
module SingleWellSpec (main, spec) where
import Test.Hspec
import Data.Conduit.Cereal
import Data.Conduit.Network
import Data.Serialize
import Conduit
import Data.Modbus
import qualified Data.ByteString.Lazy as BL
{-# LANGUAGE CPP, TemplateHaskell, QuasiQuotes #-}
import GHCJS.DOM
import GHCJS.DOM.Document
import GHCJS.DOM.HTMLElement
import GHCJS.DOM.Types
import Text.Hamlet
import Data.Text.Lazy (unpack)
import Text.Blaze.Html.Renderer.Text (renderHtml)
@smurphy8
smurphy8 / video pallette
Created September 16, 2014 13:54
Tidal Experiments
-- Make sure you have the nes and beep2 sample sets to play this stuff
-- Hippy Hoppy
-- d1 $ (sound "{[hh:8*4,[bd:2 sn:2 bd:2 sn:2]/2], null hh:3 cp:2}")
-- -- Hippy Glitchy
-- d1 $ (sound "{[glitch:6*4,[glitch glitch:7 glitch glitch:7]/2], null glitch:4 glitch:3}")
-- -- Dancy beepy
@smurphy8
smurphy8 / .gitignore
Last active August 29, 2015 14:10
SWD Kiosk App
/kiosk.org~
/#kiosk.org#
/.#kiosk.org
data OnpingForm = OnpingForm {
row :: [Row]
}
data Row = Row {
_rowItem :: [Item]
_rowAttrib :: [RowAttributes]
}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
-- | GHC Command to run
-- | :cmd return ":l Main\n :main -o midstates_chart.svg -h 1800 -w 1800"
module Diagrams.Text.XML ( ) where
@smurphy8
smurphy8 / gist:e7af813d09303f5685f6
Created December 15, 2014 19:41
Data Template Example
* Form
** Company
** Address
** Rows
*** Items
**** ItemType
***** ItemLabel Label
****** "Name of Lease Operator"
***** ItemInput Input
****** InputTypeText "Scott"
@smurphy8
smurphy8 / oauth2
Last active August 29, 2015 14:12
Using OAuth2 in Haskell
I want to set up OAuth2 in service mode.
https://developers.google.com/accounts/docs/OAuth2ServiceAccount
I have to sign my own json
https://developers.google.com/accounts/docs/OAuth2ServiceAccount#creatingjwt
@smurphy8
smurphy8 / ATS.md
Last active August 29, 2015 14:15
ATS notes

Applied Type System

ATS Version used ATS2-Postiats-0.1.8

General Features

  • Call By Value
  • The keyword dynload indicates to the ATS compiler to generate a call to the initializing function associated with the file acker.dats.
  • The keyword staload indicates to the ATS typechecker that the file following it is to be statically loaded during typechecking.

Plow Technologies Assembly Numbering

There are 3 kinds of Assemblies so far...

  1. Panel Assemblies
  2. Processor Assemblies
  3. Card Assemblies

Each one has a unique numbering scheme