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
Imports Autodesk.Revit.Attributes | |
Imports Autodesk.Revit.DB | |
Imports Autodesk.Revit.UI | |
Namespace Command | |
<Transaction(TransactionMode.Manual)> | |
<Regeneration(RegenerationOption.Manual)> | |
Public Class HelloWorldCommand | |
Implements IExternalCommand |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Autodesk.Revit.DB; | |
using Autodesk.Revit.UI; | |
namespace BPrint.Model |
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.Random; | |
public class Unit { | |
//Настройки | |
private static final int START_RESIST = 0; | |
private static final int START_HASTE_CHANCE = 5; | |
private static final int START_UVOROT_CHANCE = 10; | |
private static final int START_HP = 50; | |
private static final int START_INIT = 50; | |
private static final int START_CRIT_CHANCE = 5; |
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
package com.javarush.test.level08.lesson08.task05; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; | |
/* Удалить людей, имеющих одинаковые имена | |
Создать словарь (Map<String, String>) занести в него десять записей по принципу «фамилия» - «имя». | |
Удалить людей, имеющих одинаковые имена. | |
*/ |
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
package com.javarush.test.level19.lesson10.bonus01; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
/* Отслеживаем изменения | |
Считать в консоли 2 имени файла - file1, file2. | |
Файлы содержат строки, file2 является обновленной версией file1, часть строк совпадают. | |
Нужно создать объединенную версию строк, записать их в список lines |
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
package com.javarush.test.level09.lesson02.task02; | |
/* И снова StackTrace | |
Написать пять методов, которые вызывают друг друга. Каждый метод должен возвращать имя метода, вызвавшего его, полученное с помощью StackTrace. | |
*/ | |
public class Solution { | |
public static void main(String[] args) throws Exception { | |
method1(); | |
System.out.println(method1()); |
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
package com.javarush.test.level20.lesson10.home03; | |
import java.io.*; | |
/* Найти ошибки | |
Почему-то при сериализации/десериализации объекта класса B возникают ошибки. | |
Найдите проблему и исправьте ее. | |
Класс A не должен реализовывать интерфейсы Serializable и Externalizable. | |
Сигнатура класса В не содержит ошибку :) | |
Метод main не участвует в тестировании. |
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
package com.javarush.test.level19.lesson10.bonus03; | |
/* Знакомство с тегами | |
Считайте с консоли имя файла, который имеет HTML-формат | |
Пример: | |
Info about Leela <span xml:lang="en" lang="en"><b><span>Turanga Leela | |
</span></b></span><span>Super</span><span>girl</span> | |
Первым параметром в метод main приходит тег. Например, "span" | |
Вывести на консоль все теги, которые соответствуют заданному тегу | |
Каждый тег на новой строке, порядок должен соответствовать порядку следования в файле |
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
package com.javarush.test.level19.lesson10.home06; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.*; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; |
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
package com.javarush.test.level19.lesson10.home05; | |
/* Слова с цифрами | |
В метод main первым параметром приходит имя файла1, вторым - файла2. | |
Файл1 содержит строки со словами, разделенные пробелом. | |
Записать через пробел в Файл2 все слова, которые содержат цифры, например, а1 или abc3d | |
Закрыть потоки. Не использовать try-with-resources | |
*/ | |
import java.io.File; |