Skip to content

Instantly share code, notes, and snippets.

View randrew's full-sized avatar

Andrew Richards randrew

View GitHub Profile

Keybase proof

I hereby claim:

  • I am randrew on github.
  • I am cancel (https://keybase.io/cancel) on keybase.
  • I have a public key whose fingerprint is ABBA D1CB 484F 5302 4CF5 868B 6933 2F92 03F2 1F5C

To claim this, I am signing this object:

Andrew@asw81 MINGW64 /c/Nim
$ ./finish.exe
Traceback (most recent call last)
finish.nim(186) finish
finish.nim(130) main
registry.nim(44) getUnicodeValue
os.nim(153) raiseOSError
Error: unhandled exception: The system cannot find the file specified.
Additional info: regGetValue(newHandle, nil, kk, flags, nil, nil, addr bufsize) [OSError]
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script><script type="text/javascript">// Requires that JQuery also be in scope
function findInputList(button) {
var mainDiv = $(button).parent();
while ( !mainDiv.hasClass('inputList') ) {
mainDiv = $(mainDiv).parent();
}
return mainDiv;
}
function findItems(button) {
> {-# LANGUAGE OverloadedStrings, TypeSynonymInstances #-}
> import Control.Applicative ((<$>), (<*>), pure)
> import Snap.Types
> import Snap.Http.Server (httpServe, defaultConfig)
> import Text.Blaze (Html, (!), string)
> import qualified Text.Blaze.Html5 as H
> import qualified Text.Blaze.Html5.Attributes as A
> import Text.Blaze.Renderer.Utf8 (renderHtml)
> hiddenFormlet :: (Read a, Show a) => Html -> Maybe a -> SnapForm Html BlazeFormHtml a
> hiddenFormlet err def = inputHidden (show <$> def) `transform` transformRead err
> listCounter :: Maybe Int -> SnapForm Html BlazeFormHtml Int
> listCounter = hiddenFormlet "Couldn't read list counter"