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
<INVENTORY><ITEM><ITEMID>3705</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>4</MINQTY></ITEM> | |
<ITEM><ITEMID>3707</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>2</MINQTY></ITEM> | |
<ITEM><ITEMID>3708</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>2</MINQTY></ITEM> | |
<ITEM><ITEMID>3737</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>2</MINQTY></ITEM> | |
<ITEM><ITEMID>32013</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>4</MINQTY></ITEM> | |
<ITEM><ITEMID>32014</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>2</MINQTY></ITEM> | |
<ITEM><ITEMID>32034</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>4</MINQTY></ITEM> | |
<ITEM><ITEMID>6629</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>4</MINQTY></ITEM> | |
<ITEM><ITEMID>32184</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>8</MINQTY></ITEM> | |
<ITEM><ITEMID>32291</ITEMID><ITEMTYPE>P</ITEMTYPE><MINQTY>4</MINQTY></ITEM> |
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
I | |
1000 Version | |
SCENERY | |
SCENERY_PACK Custom Scenery/Aerosoft - EBBR Brussels/ | |
SCENERY_PACK Custom Scenery/Aerosoft - LSGG Genf/ | |
SCENERY_PACK Custom Scenery/Aerosoft - EDLP Paderborn-Lippstadt/ | |
SCENERY_PACK Custom Scenery/Aerosoft - EGLL Heathrow/ | |
SCENERY_PACK Custom Scenery/Aerosoft - LFMN Nice Cote d Azur X/ |
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
<Files "FILENAME"> | |
ForceType application/json | |
</Files> |
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
/*----------------------------------------------------*/ | |
#pragma mark - XCTAsserts | |
/*----------------------------------------------------*/ | |
XCTAssert(expression, format...); | |
XCTAssertTrue(expression, format...); | |
XCTAssertFalse(expression, format...); | |
XCTAssertEqual(expression1, expression2, format...); | |
XCTAssertNotEqual(expression1, expression2, format...); | |
XCTAssertNil(expression, format...); |
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
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
UITableViewCell *cell = | |
[tableView dequeueReusableCellWithIdentifier:REUSABLE_CELL_ID]; | |
UILabel *label = (UILabel *)[cell viewWithTag:VIEW_TAG]; | |
Model *someModel = [self getModelFromIndexPath:indexPath]; | |
// `takeUntil:` makes the RACObserve() signal complete (and thus breaks the subscription) | |
// when the cell is recycled. |
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
func keyboardShow(notification: NSNotification) { | |
let info: NSDictionary = notification.userInfo! | |
let frameV: NSValue = info[UIKeyboardFrameEndUserInfoKey] as! NSValue | |
let frame: CGRect = frameV.CGRectValue() | |
UIView.animateWithDuration(0.2, animations: { | |
() in | |
self.sview.contentInset = UIEdgeInsetsMake(0, 0, frame.size.height, 0) | |
}) | |
} |
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 seed | |
srand(time(NULL)); | |
// random number in range [0,1] | |
float r = (float)rand()/RAND_MAX; | |
printf("%f\n", r); |
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
#------------------------------------------------- | |
# | |
# Add OpenCV to QT Creator on Mac OS X | |
# | |
# This pro file assumes that opencv was installed | |
# by homebrew or manually in /usr/local/ | |
# | |
#------------------------------------------------- | |
QT += core gui |
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
# -*- Makefile -*- | |
# Mac OSX makefile for FreeImage | |
# This file can be generated by ./gensrclist.sh | |
include Makefile.srcs | |
# General configuration variables: | |
CC_X86_64 = gcc -4.2 | |
CPP_X86_64 = g++ -4.2 | |
COMPILERFLAGS = -Os -fexceptions -fvisibility=hidden -DNO_LCMS |
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
// Use a custom seperator of full width | |
UIView *lineView = [[UIView alloc] init]; | |
lineView.backgroundColor = kColorSeperator; | |
lineView.translatesAutoresizingMaskIntoConstraints = NO; | |
[self.contentView addSubview:lineView]; | |
[lineView autoPinEdge:ALEdgeBottom toEdge:ALEdgeBottom ofView:self.contentView]; | |
[lineView autoPinEdge:ALEdgeLeft toEdge:ALEdgeLeft ofView:self.contentView]; | |
[lineView autoMatchDimension:ALDimensionWidth toDimension:ALDimensionWidth ofView:self]; | |
[lineView addConstraint:[NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeHeight multiplier:1.0 constant:1]]; |
NewerOlder