Skip to content

Instantly share code, notes, and snippets.

iff --git lib/Plack/Middleware/Profiler/NYTProf.pm lib/Plack/Middleware/Profiler/NYTProf.pm
index 6990cd2..8b66cc2 100644
--- lib/Plack/Middleware/Profiler/NYTProf.pm
+++ lib/Plack/Middleware/Profiler/NYTProf.pm
@@ -27,6 +27,17 @@ use constant PROFILER_ENABLED => 'psgix.profiler.nytprof.enabled';
my %PROFILER_SETUPED;
+BEGIN {
+ if (!$ENV{NYTPROF}) {
@dann
dann / gist:5023306
Created February 24, 2013 10:13
Setup macbox
#!/bin/sh
mkdir -p ~/.devenv/mac/cookbooks
cd ~/.devenv/mac/cookbooks
git clone https://github.com/pivotal/pivotal_workstation
git clone https://github.com/opscode-cookbooks/dmg
cat > ~/soloistrc <<EOF
cookbook_paths:
- .devenv/mac/cookbooks
recipes:
@dann
dann / gist:1516379
Created December 24, 2011 05:05
"measureperl lib" result for Perl::Metrics::Lite
#======================================#
# File Metrics #
#======================================#
.---------------------------------------------------------------------------------------.
| path | loc | subs | packages |
+---------------------------------------------------------------+-----+------+----------+
| lib/Perl/Metrics/Lite.pm | 46 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis.pm | 88 | 10 | 1 |
| lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm | 47 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File.pm | 155 | 15 | 1 |
@dann
dann / gist:1516349
Created December 24, 2011 04:54
"measureperl lib" result for Perl::Metrics::Lite
#======================================#
# File Metrics #
#======================================#
.---------------------------------------------------------------------------------------.
| path | loc | subs | packages |
+---------------------------------------------------------------+-----+------+----------+
| lib/Perl/Metrics/Lite.pm | 46 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis.pm | 88 | 10 | 1 |
| lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm | 47 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File.pm | 155 | 15 | 1 |
#======================================#
# File Metrics #
#======================================#
.---------------------------------------------------------------------------------------.
| path | loc | subs | packages |
+---------------------------------------------------------------+-----+------+----------+
| lib/Perl/Metrics/Lite.pm | 46 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis.pm | 88 | 10 | 1 |
| lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm | 47 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File.pm | 155 | 15 | 1 |
#======================================#
# File Metrics #
#======================================#
.---------------------------------------------------------------------------------------.
| path | loc | subs | packages |
+---------------------------------------------------------------+-----+------+----------+
| lib/Perl/Metrics/Lite.pm | 46 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis.pm | 88 | 10 | 1 |
| lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm | 47 | 3 | 1 |
| lib/Perl/Metrics/Lite/Analysis/File.pm | 155 | 15 | 1 |
#======================================#
# File Metrics #
#======================================#
.-----------------------------------------------------------------------------------------.
| path | loc | subs | packages |
+-----------------------------------------------------------------+-----+------+----------+
| ./lib/Perl/Metrics/Lite.pm | 103 | 8 | 1 |
| ./lib/Perl/Metrics/Lite/Analysis.pm | 88 | 10 | 1 |
| ./lib/Perl/Metrics/Lite/Analysis/DocumentFactory.pm | 47 | 3 | 1 |
| ./lib/Perl/Metrics/Lite/Analysis/File.pm | 155 | 15 | 1 |
#!/usr/bin/perl
use strict;
use warnings;
use CPAN::FindDependencies;
our $is_depended = 0;
main();
exit;
#!/usr/bin/perl
use strict;
use warnings;
use Carton::CLI;
our $is_depended = 0;
main();
exit;
@dann
dann / gist:954758
Created May 4, 2011 04:32
dotcloud compdef
#compdef dotcloud
typeset -A opt_args
local context state line
_arguments -C \
'(- 1 *)'{-h,--help}'[prints help]' \
'1: :->cmds' \
'(1 *): :->args' && return 0