Skip to content

Instantly share code, notes, and snippets.

Andrew Richards randrew

  • Tokyo, Japan
Block or report user

Report or block randrew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View gist:f573661fd66f304e2a786b150c03a77b
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]
View gist:784532
<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) {
View gist:784462
> {-# 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)
View gist:769218
> 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"
You can’t perform that action at this time.