This file contains 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
FROM ubuntu:14.04 | |
RUN apt-get -y update | |
RUN apt-get -y install software-properties-common | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN apt-get -y update | |
RUN apt-get -y install nodejs | |
ADD . /src | |
RUN cd /src; npm install | |
EXPOSE 8080 | |
CMD ["nodejs", "/src/index.js"] |
This file contains 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
// when using Browserify with Angular + ngmin you may do something like this | |
// controllers/example-list.js | |
module.exports = function ($scope) { | |
//.. | |
}; | |
// example-module.js | |
var exampleListController = require('./controllers/example-list'); |
This file contains 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
$type: "scale"; | |
$value: 50%; | |
$lb: "("; | |
$rb: ")"; | |
div { | |
transform:( #{$type}#{$lb}#{$value}#{$rb} ); | |
} |
This file contains 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 Q = require('q'); | |
var HTTP = require("q-io/http"); | |
Q.all( [ | |
HTTP.request('https://mathstracker.co.uk/').timeout(5000).then(getStatus), | |
HTTP.request('http://mammal.io/').timeout(5000).then(getStatus) | |
]) | |
.then(function(resStatusArray) { | |
console.log(resStatusArray); | |
}) |
NewerOlder