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
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab |
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
FROM node:0.12 | |
EXPOSE 3000 | |
RUN mkdir /code | |
WORKDIR /code | |
COPY package.json /code/ | |
RUN npm install | |
RUN npm install -g nodemon | |
ADD . /code |
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
### Keybase proof | |
I hereby claim: | |
* I am abulte on github. | |
* I am abulte (https://keybase.io/abulte) on keybase. | |
* I have a public key whose fingerprint is 2AF6 528B BA92 D7AC 4F92 DF0B D126 E953 8D0C 3164 | |
To claim this, I am signing this object: |
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
module.directive('mesureTime', function() { | |
return { | |
restrict: 'A', | |
// require: 'ngModel', | |
link: function(scope, elm, attrs, ctrl) { | |
var timeTouch; | |
elm.on('click', function() { | |
if (timeTouch) { | |
alert(new Date().getTime() - timeTouch, " ms"); | |
} else { |
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
myApp.config(['$httpProvider', function($httpProvider) { | |
$httpProvider.defaults.useXDomain = true; | |
delete $httpProvider.defaults.headers.common['X-Requested-With']; | |
} | |
]); |
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
# CORS Headers (add this) | |
<ifModule mod_headers.c> | |
Header always set Access-Control-Allow-Origin: "*" | |
Header always set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, OPTIONS" | |
Header always set Access-Control-Allow-Headers "X-Requested-With, content-type" | |
</ifModule> | |
# BEGIN WordPress (you should have this in your original WP .htaccess) | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |