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
| xcode-select --install | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew update | |
| brew cask install iterm2 | |
| # update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts | |
| brew install bash # latest version of bash | |
| # set brew bash as default shell | |
| brew install fortune | |
| brew install cowsay | |
| brew install git |
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
| ### NOT A SCRIPT, JUST A REFERENCE! | |
| # install dante-server | |
| sudo apt update | |
| sudo apt install dante-server | |
| # or download latest dante-server deb for Ubuntu, works for 16.04 / 18.04 / 20.04: | |
| wget http://archive.ubuntu.com/ubuntu/pool/universe/d/dante/dante-server_1.4.2+dfsg-7build5_amd64.deb | |
| # or older version: | |
| wget http://ppa.launchpad.net/dajhorn/dante/ubuntu/pool/main/d/dante/dante-server_1.4.1-1_amd64.deb |
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
| class Event { | |
| constructor() { | |
| this.vue = new Vue(); | |
| } | |
| fire(event, data = null) { | |
| this.vue.$emit(event, data); | |
| } | |
| listen(event, callback) { |
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
| // listening for current item change | |
| self.audioQueueObserver = self.playerQueue?.observe(\.currentItem, options: [.new]) { | |
| [weak self] (player, _) in | |
| print("media item changed...") | |
| } | |
| // listening for current item status change | |
| self.audioQueueStatusObserver = self.playerQueue?.currentItem?.observe(\.status, options: [.new, .old], changeHandler: { | |
| (playerItem, change) in | |
| if playerItem.status == .readyToPlay { |
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 Foundation | |
| class AsyncOperation: Operation { | |
| enum State: String { | |
| case isReady, isExecuting, isFinished | |
| } | |
| override var isAsynchronous: Bool { | |
| return true | |
| } |
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 Foundation | |
| public class Storage { | |
| fileprivate init() { } | |
| enum Directory { | |
| // Only documents and other data that is user-generated, or that cannot otherwise be recreated by your application, should be stored in the <Application_Home>/Documents directory and will be automatically backed up by iCloud. | |
| case documents | |
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
| Общее: | |
| - Криптовалюта (курсера): https://www.coursera.org/learn/cryptocurrency | |
| - ML: https://tproger.ru/digest/machine-learning-materials/amp | |
| - ML: https://habrahabr.ru/company/ods/blog/322626/ | |
| - ML (курс): https://www.udacity.com/course/machine-learning-engineer-nanodegree--nd009 | |
| - Микросервисы от Авито: https://habrahabr.ru/company/avito/blog/331418 | |
| - Kotlin (android app): https://android.jlelse.eu/learn-kotlin-while-developing-an-android-app-part-2-e53317ffcbe9 | |
| - КУРСЫ: https://habrahabr.ru/post/331530 | |
| - Регулярки: http://telegra.ph/Regulyarnye-vyrazheniya-dlya-samyh-malenkih-12-12 | |
| - Оценка сложности алгоритмов: https://tproger.ru/articles/computational-complexity-explained/ |
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 'dart:ui'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(new MaterialApp(home: new FrostedDemo())); | |
| } | |
| class FrostedDemo extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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 Foundation | |
| import PlaygroundSupport | |
| /// A thread-safe array. | |
| public class SynchronizedArray<Element> { | |
| private let queue = DispatchQueue(label: "io.zamzam.ZamzamKit.SynchronizedArray", attributes: .concurrent) | |
| private var array = [Element]() | |
| public init() { } | |