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 | |
| /// A thread-safe array. | |
| public class SynchronizedArray<Element> { | |
| fileprivate let queue = DispatchQueue(label: "io.data.SynchronizedArray", attributes: .concurrent) | |
| fileprivate var array = [Element]() | |
| } | |
| // MARK: - Properties | |
| public extension SynchronizedArray { |
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
| private class ObjectWrapper { | |
| let value: Any | |
| init(_ value: Any) { | |
| self.value = value | |
| } | |
| } | |
| private class KeyWrapper<KeyType: Hashable>: NSObject { | |
| let key: KeyType |
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
| alias dco='docker-compose' | |
| alias dcb='docker-compose build' | |
| alias dce='docker-compose exec' | |
| alias dcps='docker-compose ps' | |
| alias dcrestart='docker-compose restart' | |
| alias dcrm='docker-compose rm' | |
| alias dcr='docker-compose run' | |
| alias dcstop='docker-compose stop' | |
| alias dcup='docker-compose up' |
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
| for branch in `git branch -r --merged | grep -v HEAD | grep -v dev | grep -v master` | |
| do | |
| echo $branch | |
| echo $branch | sed 's/origin\//:/' | xargs -n 1 git push origin | |
| sleep 3 | |
| done |
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
Show hidden characters
| { | |
| "auto_complete_delay": 0, | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
| "draw_white_space": "all", | |
| "fade_fold_buttons": false, | |
| "fallback_encoding": "Cyrillic (Windows 1251)", | |
| "folder_exclude_patterns": | |
| [ |
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
| <?php | |
| class File | |
| { | |
| private $file; | |
| private $buffer; | |
| public function __construct($filename, $mode) | |
| { |
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
| #compdef brew | |
| #autoload | |
| # imported from the latest homebrew contributions | |
| _brew_all_formulae() { | |
| formulae=(`brew search`) | |
| } | |
| _brew_installed_formulae() { |
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
| # export PATH="/usr/local/mysql/bin:$PATH" | |
| export EDITOR='subl -w' | |
| export CLICOLOR=1 | |
| export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
| export HOMEBREW_GITHUB_API_TOKEN='' | |
| PS1='➞ \w$ ' |
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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |