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
A Maven archetype for generating a basic JavaFX starter project. | |
See the JavaFX Maven Plugin for more details on using your generated project: | |
https://github.com/javafx-maven-plugin/javafx-maven-plugin | |
Usage: | |
mvn archetype:generate -DarchetypeGroupId=com.zenjava -DarchetypeArtifactId=javafx-basic-archetype |
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
import java.util.Arrays; | |
import java.util.Scanner; | |
/** | |
* Смотри, какое пятое задание: | |
* Написать код, который хранит массив букв - загаданное слово; | |
* спрашивает у пользователя букву, | |
* если такая буква входит в загаданное слово, | |
* то выводит на экран отгаданные буквы с указанием их расположения в слове; | |
* продолжает исполнение, |
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
удалить папку идеи .idea/ из индекса гита | |
git rm -r --cached .idea/ | |
Removed all files that are in the .gitignore | |
git rm --cached `git ls-files -i --exclude-from=.gitignore` | |
git commit -m 'Removed all files that are in the .gitignore' | |
git push origin master |
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
базовые команды | |
git clone адрес репозитория - клонировать репозиторий на локальный компютер | |
git commit -m 'initial commit' комит изменений в локальный репозиторий | |
git push -u origin master - только первый раз отправка изменений в удаленный репозиторий | |
git push - все последующие разы отправка изменений в удаленный репозиторий | |
окат изменений | |
git pull - скачивается актуальная версия удаленного репозитория и все изменения применяются к локальному репозиторию | |
checkout - перейти в другую ветку | |
discard - не отправлять в репозиторий те изменения которые нам не нравятся |
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
public int gcd(int p, int q){ | |
if(q==0) return p; | |
int r=p%q; | |
return gcd(q,r); | |
} |
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
1. Соблюдаем Code style | |
2. Используем только значимые имена переменных, функций и классов | |
3. Следим за орфографией! Это ОООЧЕНЬ ВАЖНО! | |
4. Метод выполняет только одно логическое действие. | |
6. Всегда проверяем в методах входные параметры на валидность | |
7. Думаем о том чтобы пользователю было удобно и понятно | |
как пользоваться программой без руководств пользователя | |
8. Программа не должна падать никогда, | |
обрабатывайте все ошибки пользователя | |
9. DRY (don't repeat yurself) один и тот же код не должен повторятся выносим все в методы |
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
1. Создаем репозиторий на гитхабе отмечаем создать файл Readme.md | |
в ридми пишем описание нашего проекта можно юзать маркдаун | |
2. Создаем локальную папку с именем репозитория | |
3. Клонируем репозиторий на локальный компютер указывая созданую папку проекта | |
4. В эту папку кладем файл .gitignore или его автоматом создает среда разработки | |
5. В среде разработки создаем проект | |
6. Указываем только что созданную папку где уже склонирован репозиторий | |
7. Делаем первый коммит с коментарием Initial commit | |
8. Когда начинаем работать над новой фичей создаем отдельную ветку и переходим в нее | |
в ветке мастер всегда должен быть работоспособный код |
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
![Иллюстрация к проекту](https://github.com/jon/coolproject/raw/master/image/image.png) | |
![Image alt](https://github.com/{username}/{repository}/raw/{branch}/{path}/image.png) | |
{username} — ваш ник на ГитХабе; | |
{repository} — репозиторий где хранятся картинки; | |
{branch} — ветка репозитория; | |
{path} — путь к месту нахождения картинки. |
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
git rm -r --cached . | |
git add . | |
git commit -m 'Removed all files that are in the .gitignore' | |
git push origin master |
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
Database -> Oracle Database Express Edition 11g Release 2 | |
http://www.oracle.com/technetwork/ru/database/express-edition/overview/index.html | |
Destination Folder: C:\oraclexe\ | |
Oracle Home: C:\oraclexe\app\oracle\product\11.2.0\server\ | |
Oracle Base:C:\oraclexe\ | |
Port for 'Oracle Database Listener': 1521 | |
Port for 'Oracle Services for Microsoft Transaction Server': 2030 | |
Port for 'Oracle HTTP Listener': 8080 |