This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AppConstants = require('../constants/constants'); | |
var AppDispatcher = require('../dispatchers/app'); | |
var Connections = require('../api/connection'); | |
var ConnectionActions = { | |
loadConnections: function() { | |
Connections.find({}, function(error, connections){ | |
if (error) { | |
AppDispatcher.handleViewAction({ | |
action: AppConstants.LOAD_CONNECTIONS_FAIL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eric : examples $ brew install mapnik --verbose | |
==> Downloading http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-v2.2.0.tar.bz2 | |
Already downloaded: /Library/Caches/Homebrew/mapnik-2.2.0.tar.bz2 | |
tar xf /Library/Caches/Homebrew/mapnik-2.2.0.tar.bz2 | |
brew: PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/Cellar/mapnik/2.2.0/lib/python2.7/site-packages:/usr/local/Cellar/mapnik/2.2.0/libexec/lib/python2.7/site-packages | |
==> /usr/bin/python scons/scons.py configure CC="clang" CXX="clang++" JOBS=4 PREFIX=/usr/local/Cellar/mapnik/2.2.0 ICU_INCLUDES=/usr/local/opt/icu4c/include ICU_LIBS=/usr/local/opt/icu4c/lib PYTHON_PREFIX=/usr/local/Cellar/mapnik/2.2.0 JPEG_INCLUDES=/usr/local/opt/jpeg/include JPEG_LIBS=/usr/local/opt/jpeg/lib TIFF_INCLUDES=/usr/local/opt/libtiff/include TIFF_LIBS=/usr/local/opt/libtiff/lib BOOST_INCLUDES=/usr/local/opt/boost/include BOOST_LIBS=/usr/local/opt/boost/lib PROJ_INCLUDES=/usr/local/opt/proj/include PROJ_LIBS=/usr/local/opt/proj/lib CAIRO=False | |
scons: Reading SConscript files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.config({ | |
shim: { | |
'underscore': { | |
exports: '_' | |
}, | |
'less': { | |
exports: 'LESS' | |
} | |
'mocha': { | |
exports: 'mocha' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.configure( 'development', function () { | |
app.use( express.logger( {format: 'dev'} ) ); | |
app.use( express.static( __dirname + '/public' ) ); | |
app.use( errorHandler( { dumpExceptions: true, showStack: true } ) ); | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Full Bodied Sticky Footer</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<style type="text/css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code | |
app.get('/admin', function(req, res){ | |
res.locals({'title': 'TLF - Admin'}); | |
res.render('admin', {layout: 'Admin/layout'}); | |
}); | |
//Error | |
SyntaxError: Unexpected identifier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
, validateRegistration: function (regParams, errors) { | |
if (regParams.password.length < 8) | |
errors.push('Password must be at least 8 characters. '); | |
return errors; | |
} |
NewerOlder