Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
| // all environments | |
| app.set('port', process.env.PORT || 3000); | |
| app.set('views', __dirname + '/views'); | |
| app.set('view engine', 'jade'); | |
| app.use(express.favicon()); | |
| app.use(express.logger('dev')); | |
| app.use(express.bodyParser()); | |
| app.use(express.methodOverride()); | |
| app.use(express.cookieParser('your secret here')); | |
| app.use(express.session()); |
| git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short |
| $('.nav-main').each(function () { | |
| var nav = $(this); | |
| // Give the containing element a class name to let the CSS know it is active | |
| nav.addClass('active'); | |
| nav.find('li').each(function () { | |
| var item = $(this); | |
| var link = item.find('a'); | |
| var href = link.attr('href'); | |
| // When an li element is clicked, open the href of the link it contains | |
| item.click(function (e) { |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
| { | |
| "path": "/usr/local/share/npm/bin:/usr/local/bin:$PATH", | |
| "working_dir": "${project_path:${folder}}", | |
| "cmd": ["karma", "start"] | |
| } |
| angular.module('appName', []) | |
| .directive('myDirective', function() { | |
| return { | |
| restrict: Strung, | |
| priority: Number, | |
| terminal: Boolean, | |
| template: String or Template Function: | |
| function(tElement, tAttrs) { | |
| } |
| <div class="experience"> | |
| <p>This is the paragraph</p> | |
| </div> |
| window.onload = function() { | |
| var $rootElement = angular.element(window.document); | |
| var modules = [ | |
| 'ng', | |
| 'myApp', | |
| function($provide) { | |
| $provide.value('$rootElement', $rootElement) | |
| } | |
| ]; |
| <!doctype html> | |
| <html ng-app="Demo"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Aborting AJAX Requests Using $http And AngularJS | |
| </title> | |
| <style type="text/css"> |
| /*jslint node: true, nomen: true, unparam: true */ | |
| /*global jquery, _, $ */ | |
| 'use strict'; | |
| require.config({ | |
| // 3rd party script alias names (Easier to type "jquery" than "libs/jquery, etc") | |
| // probably a good idea to keep version numbers in the file names for updates checking | |
| paths: { | |
| // Core Libraries |