Skip to content

Instantly share code, notes, and snippets.

View ttennebkram's full-sized avatar

Mark Bennett ttennebkram

  • Lucidworks, previously New Idea Engineering
  • San Francisco, CA
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Problem Method
# ---------------
# Final gist, w code fixes
# License: BSD
#
#
@ttennebkram
ttennebkram / stack-question.py
Created August 2, 2020 21:02
Pentominoes, full solution, sadly still broken
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Problem Method
# ---------------
# Similar to previous gist, but this uses the full 12 Pentominoes pieces,
# and is still generating invalid solutions
#
# I believe I've followed the Wikipedia example to the letter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Problem Method
# ---------------
# *** Search for "PROBLEM STARTS HERE"
# * Search for: solve_np
# * on FIRST iteration
# * Stategy: using just 3 Pentominoes, that will fit in 3x5 rectangle
@ttennebkram
ttennebkram / gist:8a6db6f26b42726b66a9
Created May 2, 2014 00:33
sample apollo batch, gives error on line 2 col 14
[ {
"id" : "12",
"fields" : [ {
"name" : "url",
"value" : [ {
"name" : "url",
"value" : "https://lucidimagination.zendesk.com/api/v2/tickets/12.json"
} ]
}, {
"name" : "id",
@ttennebkram
ttennebkram / gist:feaa538b3e2da8ef2b37
Created May 2, 2014 00:24
sample apollo doc, gives decode error, line 1, col 1
{
"fields" : [ {
"name" : "url",
"value" : [ {
"name" : "url",
"value" : "https://lucidimagination.zendesk.com/api/v2/tickets/12.json"
} ]
}, {
"name" : "id",
"value" : [ {
@ttennebkram
ttennebkram / gist:7772937
Created December 3, 2013 17:02
ant -p error if drools jars are removed (and intended to be added later)
ant -p
Buildfile: /Users/mbennett/data/dev/lucid/LucidWorksEnterprise-dev/build.xml
/Users/mbennett/data/dev/lucid/LucidWorksEnterprise-dev/build.xml:2: The following error occurred while executing this line:
/Users/mbennett/data/dev/lucid/LucidWorksEnterprise-dev/common-build.xml:1145: /Users/mbennett/data/dev/lucid/LucidWorksEnterprise-dev/lib/drools does not exist.