The putty settings below were taken from: http://dag.wiee.rs/blog/content/improving-putty-settings-on-windows
- Connection type: SSH
- Close window on exit: Never
- Action to happen when a bell occurs: Visual bell (flash window)
package main; | |
use Mojo::Base -strict; | |
use Test::More; | |
use Mojo::UserAgent; | |
use Mojo::Transaction; | |
# preparing... monkey patch is a good style | |
no warnings 'redefine'; | |
local *Mojo::UserAgent::get = sub { | |
my $tx = Mojo::Transaction->new; |
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
use FindBin; | |
BEGIN { unshift @INC, "$FindBin::Bin/../lib" } | |
use MyApp; | |
# Load in MyApp so we can utilise the config and database connections without | |
# adding unnecessary boilerplate. | |
my $myapp = MyApp->new; |
# Start a vagrant without virtualbox guest additions | |
$ vagrant init debian/jessie64 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
#!/usr/bin/env perl | |
package Mojo::URLQueue; | |
use Mojo::Base 'Mojo::EventEmitter'; | |
use Mojo::UserAgent; | |
has queue => sub { [] }; | |
has ua => sub { Mojo::UserAgent->new(max_redirects => 5) }; | |
has concurrency => 4; |
package Test::Mojo::Role::Rollback; | |
use Role::Tiny; | |
sub rollback { } | |
1; | |
package Test::Mojo::Role::MyLogin; | |
use Role::Tiny; | |
use Test::More; |
package MyDistribution::SomeModule; | |
1; | |
__END__ | |
=encoding utf8 | |
=head1 NAME |
#!/usr/bin/env bash | |
# Mojolicious one-liner. Ideal for checking the POD for your Perl apps or | |
# libraries. | |
# | |
# Starts a web server with `/perldoc` links for all of the files in the `lib` | |
# folder relative to your current `pwd`. | |
# | |
# The POD documentation for the linked file will only display if it's included | |
# in the file. If it isn't, it will redirect to `metacpan.org` to try and find |
The putty settings below were taken from: http://dag.wiee.rs/blog/content/improving-putty-settings-on-windows
A brief summary of this [Git] repository.
A longer description of this repository or its intentions.
jsDoc cheatsheet #javascript #boilerplate
A collection of [jsDoc] blocks for reference when coding in JavaScript.
'use strict';
/**
* @fileOverview Class handling email-related functions.
* @module Email