Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html><head><meta charset="utf-8" content="text/html" http-equiv="Content-Type" /><meta content="FIXME: write" name="description" /><style type="text/css">/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
@WuHoUnited
WuHoUnited / crossword.clj
Last active December 11, 2015 00:48
Starting point for crossword/wordsearch using clojure's core.logic library.
(ns ^{:doc "Tiny library using logit programming to put words into a crossword/wordsearch style board (or vice versa)
There are lots of things it currently doesn't do such as revers or diagonal words.
Reverse words would be trivial to add. Diagonals would be harder."
:author "Zachary Miller"}
crossword.crossword
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
;;;; a board will be a 2 dimensional sequence of characters
@Floby
Floby / editor.js
Created April 19, 2011 09:18
open the default editor from node
var fs = require('fs');
var child_process = require('child_process');
var spawn = child_process.spawn;
function openEditor(file) {
var cp = spawn(process.env.EDITOR, [file], {
customFds: [
process.stdin,
process.stdout,
process.stderr
@foogoof
foogoof / rspec should be readable.rb
Created October 16, 2010 05:56
Code sample written for a 5 minute talk on RSpec
describe "NIC-U" do
context "Fall conference" do
it "should be readable" do
"readable".should == "readable"
end
it { "readable".should == "readable"}
context "readable" do
it { should == "readable" }