- C помощью Finder ищем путь до нашего приложения
/Applications/Sublime\ Text.app
- Открываем
open ~/.bash_profile
- Добавляем к нашему полученному пути следующую строчку
/Contents/SharedSupport/bin/subl
- Записываем alias
alias sublime="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
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
#include <iostream> | |
using namespace::std; | |
#include <fstream> | |
#include <string> | |
#include <Windows.h> // для работы SetConsoleCP, SetConsoleOutputCP | |
string line, temp; // переменные для обработки строк | |
string text; // для хранения текста из файла | |
byte a; // для выбора программы | |
int i=2048; |
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
// заголовочный файл ConsoleApplication9.h | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
class CppStudio // имя класса | |
{ | |
private: | |
int day, // день |
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
// classes.cpp: определяет точку входа для консольного приложения. | |
#include "stdafx.h" | |
#include "ConsoleApplication9.h" | |
int main() | |
{ | |
setlocale(LC_ALL, "rus"); | |
CppStudio objCppstudio(22, 22, 22, "Antosha is molodec"); // объявление объекта и инициализвция элементов данных | |
objCppstudio.message(); // вызов функции message | |
objCppstudio.getDate(); // отобразить дату |
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
#include "stdafx.h" | |
#include "List.h" | |
List::~List() | |
{ | |
while (HEAD != NULL) // Пока по адресу хоть что-то есть | |
{ | |
Mass *temp = HEAD -> Next; // Запишем указатель на адрес следующего элемента структуры | |
delete HEAD; // Освобождаем память по месту начала списка |
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
void printToFile(Polynom polynom) | |
{ | |
std::ofstream out("poly.txt"); | |
if (!out) | |
{ | |
cerr << "Ошибка открытия файла!"; | |
system("pause"); | |
system("cls"); | |
} |
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 ru.whalemare; | |
import javax.swing.*; | |
public class Main { | |
/** | |
* Entry point in the program. | |
* | |
* @param args command-line arguments |
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 ru.whalemare.vkbirthday.mvp.presenter.base | |
import com.hannesdorfmann.mosby.mvp.MvpBasePresenter | |
import com.hannesdorfmann.mosby.mvp.MvpView | |
/** | |
* @since 2017 | |
* @author Anton Vlasov - whalemare | |
*/ | |
open class BaseMvpPresenterK<V : MvpView> : MvpBasePresenter<V>() { |
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
<EditText | |
android:id="@+id/text_view" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@null" | |
android:cursorVisible="false" | |
android:longClickable="false" | |
android:clickable="false" | |
android:focusable="false" | |
android:focusableInTouchMode="false"/> |
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 ru.whalemare.vkbirthday.mvp.presenter.base | |
import com.hannesdorfmann.mosby.mvp.MvpBasePresenter | |
import com.hannesdorfmann.mosby.mvp.MvpView | |
/** | |
* @since 2017 | |
* @author Anton Vlasov - whalemare | |
*/ | |
open class BaseMvpPresenterK<V : MvpView> : MvpBasePresenter<V>() { |
OlderNewer