start new:
tmux
start new with session name:
tmux new -s myname
| - Run software update | |
| - Install Purchased Apps from App Store | |
| - Disable caps lock key (Sys Pref => Keyboard => Modifier Keys) | |
| - System Pref -> Expose -> Setup corners for spaces and expose | |
| + System Pref -> Security -> Sleep Password | |
| - Setup Dropbox to Get Files | |
| - Install 1Password | |
| - Use dropbox synced file for keychain | |
| - Install browser extension for chrome | |
| - Install Prey |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| 0-mail.com | |
| 0815.ru | |
| 0clickemail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.com | |
| 20minutemail.com | |
| 2prong.com | |
| 30minutemail.com | |
| 3d-painting.com |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 14, | |
| // font family with optional fallbacks |
| <?php | |
| $data = array( | |
| array( | |
| 'id' => 1, | |
| 'children' => array( | |
| array( | |
| 'id' => 12, | |
| 'children' => array( |
Эта версия статьи устарела. Новая версия статьи перенесена по адресу: https://github.com/codedokode/pasta/blob/master/db/trees.md
Те, кто знают английский, могут сразу перейти сюда: http://stackoverflow.com/questions/4048151/what-are-the-options-for-storing-hierarchical-data-in-a-relational-database
Древовидные структуры - это такие структуры, где есть родители и дети, например, каталог товаров:
Этот урок переехал в мой гитхаб по адресу: https://github.com/codedokode/pasta/blob/master/arch/di.md
Ниже устаревшая версия урока.
Проблема, которую мы решаем — связность классов. Если в классе A написано
| #!/usr/bin/env ruby | |
| # | |
| # Mac fix 4 - Disable CrashReporter | |
| # | |
| # CrashReporter is a daemon that monitors for crashes and generates a report (duh) when they occur. | |
| # If an application (such as Finder) become stuck in an infinite crash loop, then sometimes it's | |
| # desirable to just turn off CrashReporter entirely, as it will continually generate processes in | |
| # the background which spew errors and logs, resulting in massive overhead to your system resources. | |
| # | |
| # DIAGNOSING: |
Это старая версия урока, которая больше не обновляется. Новая версия расположения тут: https://github.com/codedokode/pasta/blob/master/db/patterns-oop.md
Разберемся, как правильно с применением ООП сохранять и загружать данные из базы. Существуют такие подходы: