Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Machine.Specifications.FailingExample
{
[Concern("Scott Bellware")]
public class at_any_given_moment
{
# build_tools.rb
@nant = ".\\tools\nant-0.86\nant.exe"
def nant(build_file = 'default.build', *tasks)
tasks_to_run = tasks.map {|t| t.to_s}.join(', ')
sh "#{@nant} -f:#{build_file} #{tasks_to_run}"
end
require 'rake'
require 'build_tools'
task :default => :build
task :build => [:assembly_info, :compile, :create_db]
task :compile do
nant :compile
end
# rakefile.rb with new 'compile' task...
require 'build_tools'
task :compile do
msbuild :my_sln
end
# build_tools.rb
# rakefile.rb with new 'compile' task...
require 'build_tools'
task :compile do
msbuild :my_sln
end
# build_tools.rb
@laribee
laribee / cmdln
Created September 25, 2010 03:33
cat script.txt | say -v "Good News"
@laribee
laribee / server.coffee
Created October 27, 2010 22:14
Node.js "Hello World" web server in CoffeeScript
require.paths.unshift './vendor'
app = require('express').createServer()
app.get '/', (request, response) ->
response.send 'hello world'
app.listen 3000
@laribee
laribee / css-text-anaglyph-1
Created March 8, 2011 17:24
CSS-based Textual Anaglyph (Attempt #1)
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
body { background-color: #000; background-image: url(http://www.equalizergraphics.com/images/anaglyph.png)}
while (true) { alert('DAN LASH!'); }
on '5/1/2007' do
as member.find('administrator')
@local_developer_group = insert :member_label do
name "Local Developers" # method missing
end
@local_developer_group = insert :member_label do
name "Java Developers"