-
Что такое
полиморфизм
? -
Что такое *инкапсуляция? Что такое *нарушение инкапсуляции?
-
Чем
абстрактный
класс отличается отинтерфейса
? -
Расскажите о
паттерне MVC
. Чем отличаетсяпассивная
модель отактивной
?
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
- CONVERT TOKEN: | |
http://192.168.131.128:8000/api/social/convert-token/ | |
PARAMS: | |
grant_type: convert_token | |
client_id: FROM DJANGO ADMIN APPLICATIONS | |
client_secret: FROM DJANGO ADMIN APPLICATIONS | |
backend: facebook | |
token: FROM FACEBOOK | |
- REVOKE TOKEN: |
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
===== INITIALIZE PROJECT ==== | |
-- Create virtual environment on Desktop: | |
cd ~/Desktop | |
virtualenv myvirtualenv/foodtasker | |
*** macOS: | |
python3 -m venv myvirtualenv/foodtasker | |
-- Activate virtual environment: | |
source myvirtualenv/foodtasker/bin/activate |
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
First create a new file called Procfile in the root of your project and add the following to it. | |
web: myFirstKituraProject | |
$ heroku create --buildpack https://github.com/kylef/heroku-buildpack-swift.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
### Shortlog | |
git shortlog | |
* -n | |
* -sn | |
### Amend LAST commit (message or files): | |
git commit --amend -m "Added some files or just edited comm message" | |
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://technet.microsoft.com/en-us/library/cc772785(WS.10).aspx#BKMK_create | |
* To list tasks: | |
schtasks /query | more | |
* To delete task named 'stackoverflow': | |
schtasks.exe /delete /tn stackoverflow | |
* To create task named 'stackoverflow', run every 5 hours, first run at 12:27: | |
schtasks /create /sc hourly /st 12:27 /mo 5 /tn "stackoverflow" /tr 'python C:\stackoverflowEveryday.py' |
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
//SAMPLE CODE FROM APPLE | |
//https://developer.apple.com/library/content/samplecode/GenericKeychain/Listings/README_md.html | |
enum Key { | |
//... | |
//.... | |
enum Headers { | |
static let Authorization = "Authorization" | |
static let ContentType = "Content-Type" |
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
wiztree program | |
http://download.cnet.com/WizTree/3000-2248_4-75816793.html |
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
override func prepareForReuse() { | |
super.prepareForReuse() | |
profileImageView.image = nil | |
usernameTopButton.setTitle("", forState: .Normal) | |
dateLabel.text = nil | |
profileImageDownloadTask?.cancel() | |
profileImageDownloadTask = nil | |
} |
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
Close the project in XCode | |
Delete the following files using the Terminal. Where “myproject” is the name your project. | |
rm -rf myproject.xcworkspace/xcuserdata | |
rm -rf myproject.xcodeproj/xcuserdata | |
rm -rf myproject.xcodeproj/project.xcworkspace |
NewerOlder