How to setup eslint for Meteor project
Usage
- install dependencies
- setup .eslintrc to the root of your project
- run
eslint .
Dependencies
Install all needed dependencies
eslint .
Install all needed dependencies
-- Do a backup to iTunes and open "%APPDATA%\Apple Computer\MobileSync\Backup\*\3d0d7e5fb2ce288813306e4d4636395e047a3d28" as a SQLite database | |
SELECT chat.chat_identifier, message.is_from_me, datetime(message.date + 978307201, 'unixepoch') as date, message.text | |
FROM chat | |
JOIN chat_message_join on chat.ROWID = chat_message_join.chat_id | |
JOIN message on message.ROWID = chat_message_join.message_id | |
order by message.date |
unmap x | |
# Searches | |
map c Vomnibar.activateInNewTab keyword=d | |
map ; Vomnibar.activateInNewTab keyword=l | |
map w Vomnibar.activateInNewTab keyword=w | |
map t Vomnibar.activateInNewTab keyword=g | |
map yt Vomnibar.activateInNewTab keyword=y | |
map a Vomnibar.activateInNewTab keyword=a | |
map gh Vomnibar.activateInNewTab keyword=gh |
var mongoose = require('mongoose'); | |
var db = mongoose.connect("mongodb://localhost/testdb"); | |
var reconnTimer = null; | |
function tryReconnect() { | |
reconnTimer = null; | |
console.log("try to connect: %d", mongoose.connection.readyState); | |
db = mongoose.connect("mongodb://localhost/testdb"); | |
} |
var db = mongoose.connect('mongodb://localhost:27017/DB'); | |
// In middleware | |
app.use(function (req, res, next) { | |
// action after response | |
var afterResponse = function() { | |
logger.info({req: req}, "End request"); | |
// any other clean ups |
It took me days to actually get this working, so I figured I would write out the steps I took to finally resolve the issue for my own assistance in the future and, hopefully, to help others who encounter this problem.
Create .deploy
folder in your app's directory
cd .deploy
mup init
Configure the mup.js
file to match your configuration. Here's an extremely basic example:
Follow instructions below to get meteor emails sending correctly from heroku using amazon ses
set up smtp access via aws console, get your smtp credentials
using a javascript console (chrome dev tools / firebug) run
encodeURIComponent("SES_SMTP_USERNAME")
encodeURIComponent("SES_SMTP_PASSWORD")
var geojsonStream = require('geojson-stream'); | |
var mapnik = require('mapnik'); | |
var fs = require('fs'); | |
var input = 'test/data/world_merc.shp'; | |
var output = './out.geojson'; | |
// set up geojson output stream | |
var fileOut = fs.createWriteStream(output); | |
var geojsonOut = geojsonStream.stringify(); |
Hi, I'm Lorna and I don't use a mouse. I have had RSI issues since a bad workstation setup at work in 2006. I've tried a number of extra hardware modifications but what works best for me is to use the keyboard and only the keyboard, so I'm in a good position and never reaching for anything else (except my coffee cup!). I rather unwisely took a job which required me to use a mac (I've been a linux user until now and also had the ability to choose my tools carefully) so here is my cheatsheet of the apps, tricks and keyboard shortcuts I'm using, mostly for my own reference. Since keyboard-only use is also great for productivity, you may also find some of these ideas useful, in which case at least something good has come of this :)
There's more detail on a few of these apps but here is a quick overview of the tools I've installed and found helpful
Tool | Link | Comments |
---|
Skip to the relevant sections if needed.