Skip to content

Instantly share code, notes, and snippets.

@mascip
mascip / hobbit-violence.clj
Last active August 29, 2015 14:06
Hobbit violence
; Hobbit violence
; My version of this exercise,
; found at http://www.braveclojure.com/do-things/
(def a-body [
{:part "head", :size 3}
{:part "eye", :size 1, :symmetrical true}
{:part "ear", :size 1, :symmetrical true}
{:part "mouth", :size 1}
{:part "neck", :size 2}])
@mascip
mascip / concatenate-js-files-for-production.pl
Last active December 29, 2015 10:28
How I concatenate all my .coffee and .js files, for production
#!/usr/bin/env perl
use 5.16.3; # Perl version requirement
use feature ":5.16";
use strictures;
use Config::Any;
use IO::All;
# The list of .coffee files comes from the development configuration, because they are not needed in production.
# The list of .js files to concatenate comes from the production configuration, because in development they are loaded locally, while in production I use CDNs for some.