-
Что такое
полиморфизм
? -
Что такое *инкапсуляция? Что такое *нарушение инкапсуляции?
-
Чем
абстрактный
класс отличается отинтерфейса
? -
Расскажите о
паттерне MVC
. Чем отличаетсяпассивная
модель отактивной
?
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
set guifont=SF\ Mono:h14 | |
syntax on | |
set ruler | |
set background=dark | |
colorscheme solarized | |
highlight LineNr ctermbg=NONE | |
set ignorecase | |
set number | |
set guioptions-=r | |
au BufReadPost *.podspec set syntax=ruby |
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
abbr -a gchm git checkout master | |
abbr -a rb review-branch | |
abbr -a g git | |
abbr -a ga git add | |
abbr -a gaa git add --all | |
abbr -a gapa git add --patch | |
abbr -a gba git branch -a -v | |
abbr -a gb git branch | |
abbr -a gc git commit -v | |
abbr -a gc! git commit -v --amend |
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
#Showing user name and current git branch | |
PS1='\[\e[1;31m\]Mac[\[\e[m\]\[\e[1;32m\]\u\[\e[m\]\[\e[1;31m\]]\[\e[m\] \[\e[1;36m\]\w\[\e[m\]$(__git_ps1 "\[\033[01;33m\] git(\[\e[35m\]%s\[\033[01;33m\])") \[\e[1;32m\]➜ \[\e[m\]' | |
#Current color scheme - Solarized | |
export CLICOLOR=1 | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
export GREP_OPTIONS='--color=auto' |
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)saveTestImage:(UIImage *)image | |
{ | |
NSArray * paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
NSString * basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil; | |
NSData * binaryImageData = UIImagePNGRepresentation(image); | |
[binaryImageData writeToFile:[basePath stringByAppendingPathComponent:@"TestImage.png"] atomically:YES]; | |
} |
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
set curVolume to get volume settings | |
if output muted of curVolume is false then | |
set volume with output muted | |
else | |
set volume without output muted | |
end if |
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
Build | |
build | |
DerivedData | |
.DS_Store | |
xcuserdata | |
*.xcworkspace | |
Podsld | |
*~ | |
Pods | |
*.swp |
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
set curVolume to output volume of (get volume settings) | |
-- work out the new setting | |
if curVolume > 6 then | |
set newVolume to curVolume - 6 | |
else | |
-- can't go over 100 | |
set newVolume to 0 | |
end if | |
-- and apply it | |
set volume output volume newVolume |
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
set curVolume to output volume of (get volume settings) | |
-- work out the new setting | |
if curVolume < 94 then | |
set newVolume to curVolume + 6 | |
else | |
-- can't go over 100 | |
set newVolume to 100 | |
end if | |
-- and apply it | |
set volume output volume newVolume |