Skip to content

Instantly share code, notes, and snippets.

vehicles.forEach((ownedVehicle) => {
VehicleModel.findOne({_id: ownedVehicle.vehicleId}, (err, vehicle) => {
if (err) throw err;
console.log(vehicle);
returnArr.push({
year: vehicle.year,
make: vehicle.make,
model: vehicle.model,
});
@jacobgardner
jacobgardner / .htacess
Created July 22, 2015 18:46 — forked from ryanfitton/.htacess
This snippet is great to use if you have recently switched your Wordpress website over to HTTPS only. Paste this snippet into your .htaccess and overwrite the standard Wordpress code at the top of the file.
# BEGIN WordPress
# Test
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]