My recommended JSHint options
JavaScript:
{
node: true,
browser: true,
es5: true,
esnext: true,
My recommended JSHint options
JavaScript:
{
node: true,
browser: true,
es5: true,
esnext: true,
# .---------------- minute (0 - 59) | |
# | .------------- hour (0 - 23) | |
# | | .---------- day of month (1 - 31) | |
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
# | | | | | | |
# * * * * * command to be executed |
<?php | |
/* From https://www.usps.com/send/official-abbreviations.htm */ | |
$us_state_abbrevs_names = array( | |
'AL'=>'ALABAMA', | |
'AK'=>'ALASKA', | |
'AS'=>'AMERICAN SAMOA', | |
'AZ'=>'ARIZONA', | |
'AR'=>'ARKANSAS', |
// Finding and creating models | |
// =========================== | |
// | |
// We might need to get a reference to a model from anywhere in our code | |
// and we want to make sure that these references all point to the same model. | |
// Otherwise updates to one copy of the model won't affect another. | |
// | |
// The methods here let you get models through a wrapper that will either | |
// create the model if it doesn't exist anywhere, or return a reference to | |
// the existing model. E.g. |
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
ruby date_based_archive.rb ~/Maildir/.Archive
The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing. You can exclude folders if you want to. You probably want to exclude giant cache folders.
You should have a similar script.