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
brew uninstall --force dart | |
brew install dart | |
brew unlink dart | |
cd /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart | |
git checkout 6dc76559afd0a6cf6107d0c06c81b14e2cd74c07 | |
cp dart.rb /tmp | |
nano /tmp/dart.rb # remove devel block from source code and save changes | |
brew unlink dart | |
brew install --build-from-source /tmp/dart.rb |
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
// нужно сгенерировать 100 случайных чисел в диапазоне -50 до 50 | |
// если число положительное - вывести в консоль | |
// если отрицательно - вывести в stderr | |
// все числа логировать в файл | |
import 'dart:io'; | |
import 'dart:math'; | |
void main() { | |
Console console = Console(); |