Skip to content

Instantly share code, notes, and snippets.

@chaosprinz
chaosprinz / jade_compile.js
Last active April 19, 2016 08:34 — forked from gperetin/jade_compile.js
Node.js script to compile Jade templates
/*
* This script takes 2 arguments, first is path to templates dir,
* and second is path to folder where to put compiled templates.js
*
* It scans templates dir, takes all .jade files and compiles them
* as Jade templates. Then it writes all template functions to
* single output file templates.js
*/
var fs = require('fs');
@chaosprinz
chaosprinz / specspec_helper.rb
Created August 28, 2011 09:49 — forked from gavinheavyside/trivial_file_upload_service.rb
Trivial file upload service with simple filename-check using Sinatra and test it with rspec
require './trivial_file_upload_service.rb'
require 'rack/test'
require 'rspec'
set :enviroment, :test
end