Touch the proxy configuration file if needed
sudo vi /etc/apt/apt.conf.d/80proxy
Add the following configuration:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <tit1e>AngularJS Tutoria1s</title> | |
| <link rel="stylesheet” href=“vendor/foundation/foundation.min.css"> | |
| </head> | |
| <div ng-app="myApp"> |
| var app = angular.module('OpenLayersApp', []); | |
| app.controller('EventController', | |
| ['$scope', '$compile', '$timeout', function($scope, $compile, $timeout) { | |
| var map = new OpenLayers.Map("map",{projection:"EPSG:3857"}); | |
| var osm = new OpenLayers.Layer.OSM(); | |
| var toMercator = OpenLayers.Projection.transforms['EPSG:4326']['EPSG:3857']; | |
| var center = toMercator({x:-0.05,y:51.5}); |
| user nobody;# 工作进程的属主 | |
| worker_processes 4;# 工作进程数,一般与 CPU 核数等同 | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; | |
| events { |
| describe('e2e: main', function() { | |
| var ptor; | |
| beforeEach(function() { | |
| browser.get('/'); | |
| ptor = protractor.getInstance(); | |
| }); | |
| it('should load the home page', function() { |
| (function (jasmine, jsonPath) { | |
| 'use strict'; | |
| jasmine.getNodeByPath = function(obj, path, arg) { | |
| return jsonPath(obj, path, arg); | |
| }; | |
| beforeEach(function() { | |
| this.addMatchers({ | |
| toHasJsonPath: function(path) { | |
| var actual = this.actual; |
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql2 | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser