$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]Open Terminal Ctrl+Alt+T Download Firefox Developer Edition tar file
wget https://download.mozilla.org/?product=firefox-aurora-latest-ssl&os=linux64&lang=en-US
Copy tar file to opt
sudo cp -rp firefox-35.0a2.en-US.linux-x86_64.tar.bz2
Open opt folder (cd /opt/) and untar file
sudo tar xjf firefox-35.0a2.en-US.linux-x86_64.tar.bz2
Full blog post can be found here: http://pnommensen.com/2014/09/07/high-performance-ghost-configuration-with-nginx/
Ghost is an open source platform for blogging founded by John O'Nolan and Hannah Wolfe. It's a node.js application and therefore works great in conjunction with nginx. This guide will will help you create a high performance nginx virtual host configuration for Ghost.
"Don't use #nodejs for static content" - @trevnorris. If #nginx isn't sitting in front of your node server, you're probably doing it wrong.
— Bryan Hughes (@nebrius) August 30, 2014
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
The node.js application runs on a port on your server
| app.filter('capitalize', function() { | |
| return function(input, scope) { | |
| if (input!=null) | |
| input = input.toLowerCase(); | |
| return input.substring(0,1).toUpperCase()+input.substring(1); | |
| } | |
| }); |
| var app = angular.module('yourApp', []); | |
| // No olvide inyectar el servicio $compile a su controlador | |
| app.controller('yourCtrl', ['$scope', '$compile', function($scope, $compile) { | |
| //Trae el template crudo del servidor | |
| var template = "<div ng-repeat='item in items'>{{item.name}}</div>"; | |
| //Por simplicidad del ejemplo vamos a insertar el template con jquery | |
| $('#sucontainer').html(template); | |
| //Hasta este momento lo que inserto en el DOM es inerte, | |
| //Angular no conoce de su existencia. | |
| //Para lograrlo tenemos que compilar el template y |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| ############################################# | |
| # Push de la rama actual | |
| git push origin $rama_actual | |
| ############################################# | |
| # Volver a un commit anterior, descartando los cambios | |
| git reset --HARD $SHA1 | |
| ############################################# | |
| # Ver y descargar Ramas remotas |