-
Что такое
полиморфизм? -
Что такое *инкапсуляция? Что такое *нарушение инкапсуляции? -
Чем
абстрактныйкласс отличается отинтерфейса? -
Расскажите о
паттерне 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
| # define output folder environment variable | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| # Step 1. Build Device and Simulator versions | |
| xcodebuild -target ${PROJECT_NAME} ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" | |
| BUILD_ROOT="${BUILD_ROOT}" xcodebuild -target ${PROJECT_NAME} -configuration ${CONFIGURATION} -sdk iphonesimulator -arch i386 BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" | |
| # make sure the output directory exists | |
| mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" |
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
| ########################################## | |
| # | |
| # c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.7 | |
| # | |
| # Latest Change: | |
| # - Supports iPhone 5 / iPod Touch 5 (uses Apple's workaround to lipo bug) | |
| # | |
| # Purpose: |
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
| @interface DFPurchase : NSObject | |
| @property (nonatomic, strong) NSString *currency; | |
| @property (nonatomic, strong) NSDate *date; | |
| @property (nonatomic, strong) NSString *orderId; | |
| @property (nonatomic, strong) NSString *store; | |
| @property (nonatomic, strong) NSString *purchaseDescription; | |
| @property (nonatomic, assign) double subtotal; | |
| @property (nonatomic, assign) double tax; | |
| @property (nonatomic, assign) double shipping; |
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
| ######################################## | |
| ##### upstart_virtualenv_test.conf ##### | |
| ##### install in /etc/init ##### | |
| ######################################## | |
| description "Testing virtualenv and upstart setup" | |
| env PYTHON_HOME=/home/steve/.virtualenvs/upstart-test | |
| start on runlevel [2345] |
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
| <!-- | |
| This disables app transport security and allows non-HTTPS requests. | |
| Note: it is not recommended to use non-HTTPS requests for sensitive data. A better | |
| approach is to fix the non-secure resources. However, this patch will work in a pinch. | |
| To apply the fix in your Ionic/Cordova app, edit the file located here: | |
| platforms/ios/MyApp/MyApp-Info.plist | |
| And add this XML right before the end of the file inside of the last </dict> entry: |
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
| FirstName // First name - kABStringPropertyType | |
| LastName // Last name - kABStringPropertyType | |
| MiddleName // Middle name - kABStringPropertyType | |
| Prefix // Prefix ("Sir" "Duke" "General") - kABStringPropertyType | |
| Suffix // Suffix ("Jr." "Sr." "III") - kABStringPropertyType | |
| Nickname // Nickname - kABStringPropertyType | |
| FirstNamePhonetic // First name Phonetic - kABStringPropertyType | |
| LastNamePhonetic // Last name Phonetic - kABStringPropertyType | |
| MiddleNamePhonetic // Middle name Phonetic - kABStringPropertyType | |
| Organization // Company name - kABStringPropertyType |
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
| __author__ = 'schwa' | |
| import os | |
| import subprocess | |
| import glob | |
| from github import Github # pip install PyGithub | |
| from bitbucket.bitbucket import Bitbucket # pip install --user bitbucket-api | |
| GH_USERNAME = 'jwight@mac.com' | |
| GH_PASSWORD = '1234' |
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
| package com.utelecard.utd_mobile.Activities.Distributors.Reports; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBar; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.view.Gravity; | |
| import android.view.MenuItem; | |
| import android.view.ViewGroup; | |
| import android.widget.TableLayout; | |
| import android.widget.TableRow; |
OlderNewer