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| #!/bin/bash | |
| # Pass a file to mogrify, but retain the timestamp to the nearest second. | |
| # | |
| # Amend the mogrify line below with the correct parameters. | |
| # | |
| # Parameters: | |
| # The input file and nothing else. | |
| # | |
| # Return codes: |
jsDoc cheatsheet #javascript #boilerplate
A collection of [jsDoc] blocks for reference when coding in JavaScript.
'use strict';
/**
* @fileOverview Class handling email-related functions.
* @module EmailA brief summary of this [Git] repository.
A longer description of this repository or its intentions.
The putty settings below were taken from: http://dag.wiee.rs/blog/content/improving-putty-settings-on-windows
| #!/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 |
| package MyDistribution::SomeModule; | |
| 1; | |
| __END__ | |
| =encoding utf8 | |
| =head1 NAME |
| package Test::Mojo::Role::Rollback; | |
| use Role::Tiny; | |
| sub rollback { } | |
| 1; | |
| package Test::Mojo::Role::MyLogin; | |
| use Role::Tiny; | |
| use Test::More; |
| #!/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; |
| # 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 | |
| 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; |