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
"tfvc.location": "/home/kirillstyopkin/TEE-CLC/tf", | |
"team.showWelcomeMessage": false, | |
"team.remoteUrl": "http://555", | |
"team.teamProject": "proj" | |
Из папки, куда распакован tf: | |
./tf workspace -new workspace -collection:http://addr:8080/tfs/DefaultCollection |
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
import React from 'react'; | |
import { createMockStore } from 'redux-test-utils'; | |
import { shallowWithStore } from 'enzyme-redux'; | |
import { mount, shallow, configure } from 'enzyme'; | |
import Adapter from 'enzyme-adapter-react-16'; | |
import TravellersScreen from './index'; | |
import Counter from '../../../../components/Counter'; | |
configure({ adapter: new Adapter() }); |
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
По поводу практического задания по Базам Данных(Posgtres), как я уже говорил ранее, я планировал дать вам спеку какого-нибудь реального проекта и предложить построить архитектуру базы данных для этого проекта, но мои ожидания разбились об жестокую реальность: у нас нет ни одного проекта с нормальной спекой, по которой можно было раз и построить архитектуру :) | |
В связи с этим я написал вам описание ваше будущей базы данных сам, поэтому предлагаю ознакомиться и если есть какие-то вопросы, то смело их задавать, потому что я мог что-то забыть или написать лишнего, или недостаточно ясно выразить свою мысль, | |
Футбольный менеджер | |
Основной элемент - это футболист, у футболиста есть имя, фамилия, гражданство, позиция на которой он играет и некоторые дополнительные ТТХ, которые значения не имеют. Также футболист хранит историю своих трансферных переходов. И статистику забитых мячей, передач и тому подобное для каждой команды, за которую он играл. | |
Есть футбольные клубы, каждый клуб принимает участие в турнирах (чемпи |
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
" ---------------------- USABILITY CONFIGURATION ---------------------- | |
" Basic and pretty much needed settings to provide a solid base for | |
" source code editting | |
" don't make vim compatible with vi | |
set nocompatible | |
" turn on syntax highlighting | |
syntax on | |
" and show line numbers |
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
var unwatch = scope.$watch(function() { | |
return ngModel.$modelValue; | |
}, function(newValue) { | |
if (newValue && (newValue.charAt(0) == '&' || newValue.charAt(0) == '?')) { | |
//scope[attrs.ngModel] = newValue.slice(1); | |
} | |
}); | |
ngModel.$modelValue = newVal; | |
scope.$on('$destroy', function() { |
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
function calculation(x, y) | |
{ | |
var key = x.toString() + "|" + y.toString(); | |
var result = 0; | |
if (!calculation.memento[key]) | |
{ | |
for (var i = 0; i < y; ++i) result += x; | |
calculation.memento[key] = result; | |
} |
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
var http = require('http'); | |
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var app = express(); | |
app.use(bodyParser.json()); | |
app.use(bodyParser.urlencoded({ extended: false })); | |
var port = process.env.PORT || 1337; |
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
TypeScript enhances JavaScript with types, classes and interfaces. Some people think that is the problem with JavaScript. It’s not. The problem with JavaScript is not that it is a dynamically typed prototype based object-oriented language without classes. That is actually JavaScript’s strength. The problem is that it is a poorly designed language, filled with many hidden land mines awaiting the unsuspecting developer. |
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
How to setup project locally | |
1. Clone project from github: git clone [email protected]:boo1ean/network.git | |
2. Go to project dir and run: ./composer.phar install | |
3. Set rw permissions for runtime folders: chmod 777 -R public/assets/ app/runtime/ | |
4. Add new site record to apache conf sudo gedit /etc/apache2/sites-available/network (will create new file if doesn't exist) And put: |