Skip to content

Instantly share code, notes, and snippets.

View lindes's full-sized avatar

David Lindes lindes

View GitHub Profile
@rounders
rounders / gist:954043
Created May 3, 2011 19:34
problems with cucumber
### output from running cucumber ###
Using the default profile...
Feature: Manage Projects
In order to manage my projects
As an authenticated user
I want to create and manage projects
Scenario: Projects List # features/manage_projects.feature:7
Given I am logged in as user bob@test.com # features/step_definitions/project_steps.rb:1
And I have 5 to 10 projects # features/step_definitions/project_steps.rb:10
@simonbaird
simonbaird / tau.patch
Created June 16, 2011 15:51
Patch ruby to define tau
diff --git a/ext/bigdecimal/lib/bigdecimal/math.rb b/ext/bigdecimal/lib/bigdecimal/math.rb
index c17841f..c672cbf 100644
--- a/ext/bigdecimal/lib/bigdecimal/math.rb
+++ b/ext/bigdecimal/lib/bigdecimal/math.rb
@@ -9,6 +9,7 @@ require 'bigdecimal'
# atan(x, prec) Note: |x|<1, x=0.9999 may not converge.
# exp (x, prec)
# log (x, prec)
+# TAU (prec)
# PI (prec)
@hanshuebner
hanshuebner / sudoku-test.lisp
Created December 11, 2011 10:46
Ruby book Sudoku solver in Common Lisp
(defmacro deftestpackage (package-name for-package &optional (test-library-package-name :unit-test))
"Define a new package PACKAGE-NAME used to test the package
designated by FOR-PACKAGE. The new package will import all symbols
from FOR-PACKAGE and :USE the package designated by
TEST-LIBRARY-PACKAGE-NAME which supposedly contains unit testing
functions and macros."
`(defpackage ,package-name
(:use ,test-library-package-name ,@(mapcar #'package-name (package-use-list for-package)))
(:import-from ,for-package
,@(let (symbols)
@dastels
dastels / testing.lisp
Created July 11, 2015 22:53
Common Lisp testing framework
;;; Common Lisp testing framework
;;; Copyright 2015 Dave Astels
;;; MIT License
(defvar number-of-tests 0)
(defvar number-of-failures 0)
(defvar failure-messages '())
@theXYZT
theXYZT / blueprint.txt
Created July 11, 2020 02:16
Numeric Display Book
0eNrsve2OW9mRJfoqgoDGdPdVuk9E7E/D3YBd/rarfnjqR880DEElsVzE1RdSKbcLg3qA+xb32e6TXDKTWWKe4EpGZNVhKbZoAzNoWTwi40TEXvGx1/o/j796+X719nL9+urpV2/e/N+Pf/5/PvzJu8c//6+9/3P7v62fv3l988fv1n97/ezl9s+uvn27evzzx39fX1693/zJk8evn73a/sHN37j4y+Pvnjxev36x+sfjn9N3f33yePX6an21Xt085vr/+Pbp6/evvlpdbv7Ch0+/evby5cXLZ6/ebp749s27zUfevN7+c5vHXDA/efzt5v/Pm0dvvtHV5ZuXT79affPs7+s3l9u/83x9+fz9+urp5n978f0Hv15fvrt6av7e0+Obh7+7erb97dP2/3j19tnls6vtv/H4F9v/+f271ebfePnmcvNjri7fr24+8Xr1fPtvvtv+I7T9f/52uVq93v+56xePf87f/fW77757okzAPhOkBU1AC5uA9n7+9v9uAmwi33+zV6sX6/evLlYvN//A5fr5xds3L1eHrCN3rKO+zuXqhfoyaf5tNha+teLNC7v7vwtfu/PhX5YO/eWDvy0Z3/e0vMvzwu+7ABNkowloeRMs7fIVmKD4vCAF9gIVZxnYpPrcYkmbpIVtkuc2acAmzWYT6vGzRQcm6D4TRA6VNnOLjg4RmoxGafFTKEEjkM8IoaHTNHcNhCfJCCipLu8asrRVEIAk8RlhSdfISxthDlQ7tEry4moqblwts2/DfQ6NhSGOtn348I8zosrt34teSxKClWTElVtPCH8uIMxE1ecJoc+FOZLsCF1T87lGZHhNZW4VGDBWdCnxATZsSbAVTfIARoB9OPJ5QuQ6g+bHKk3QN9jnG5HNwpMyC/QWK8AcoIfFqI/Hxl4mTfFRNmflGwmZJfvMErkCY2iE4guQyCCMRfkGKsHYiE3bAAMvhM+5uWwQ2jOq8gyERLl7i/P+w2deaX7iSWr2IdfhTx+e6BkhZomPImQ+5iSakFX