First, install xdebug
package on system:
$ sudo yum install php-pecl-xdebug.x86_64
Or with DNF:
{"lastUpload":"2022-04-06T08:57:41.429Z","extensionVersion":"v3.4.3"} |
import express from 'express'; | |
const app = express(); | |
app.use(express.static(__dirname)); | |
app.listen(8083, () => { | |
console.log('Static server is runing on port 8083'); | |
}); |
#!/bin/bash | |
# | |
# Check package.json and npm install after git checkout. | |
# Put this to .git/hooks/post-checkout | |
# | |
PREVIOUS_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_SWITCH=$3 |
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css"> |
(function () { | |
var makeCallback = function(eventType, observer) { | |
if (eventType === 'value') { | |
return function(snap) { | |
observer.onNext(snap); | |
}; | |
} else { | |
return function(snap, prevName) { | |
// Wrap into an object, since we can only pass one argument through. | |
observer.onNext({snapshot: snap, prevName: prevName}); |
test |
test |
// Angular js foo module declaration | |
// which is later instantiated in html | |
var foo = angular.module('foo', []); | |
// Let's declare new angular hello component | |
foo.component('hello', { | |
// Use template | |
template: '<h3> {{ hello.message }} </h3>', |
describe('Declare inject controller', function() { | |
// 1. Prerequisities | |
// Variables which are avalaible on parent scope | |
var $controller, | |
ctrl, | |
serviceMock; | |
// 2. We are using module foo because it contains desired controller |