This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* SPIDER -- a sample adventure game, by David Matuszek. | |
| Consult this file and issue the command: start. */ | |
| :- dynamic at/2, i_am_at/1, alive/1. /* Needed by SWI-Prolog. */ | |
| :- retractall(at(_, _)), retractall(i_am_at(_)), retractall(alive(_)). | |
| /* This defines my current location. */ | |
| i_am_at(meadow). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #names of functions to create KV versions of and arg lists (in order) | |
| to_kv = throttle: ['func', 'wait'], delay: ['func', 'wait'], defer: ['func'], bind: ['func', 'context'] | |
| mixin = {} | |
| for name, arglist of to_kv | |
| do (name, arglist) -> | |
| mixin["#{name}KV"] = (kvargs) -> | |
| args = (kvargs[arg] for arg in arglist when kvargs[arg]?) | |
| if arglist.length isnt args.length then throw new Error "missing args" | |
| _[name](args...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe "Shopping Cart Requests" do | |
| let!(:user) { Fabricate(:user) } | |
| before(:each) do | |
| login_user_post("admin", "admin") | |
| end | |
| context "when I visit the shopping cart" do | |
| it " show the logged in users' cart items " do | |
| #Test stuff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- http://www.brucelawson.co.uk/2010/a-minimal-html5-document/ --> | |
| <!doctype html> | |
| <html lang=en> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>blah</title> | |
| </head> | |
| <body> | |
| <p>I'm the content</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main (main) where | |
| {- | |
| To use this script you need to extract your local Hackage index file. If | |
| your setup is anything like mine, you should be able to find a .tar file | |
| containing the listing somewhere like this: | |
| ~/.cabal/packages/hackage.haskell.org/00-index.tar.gz | |
NewerOlder