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
contract MultidimensionalToken { | |
string public name; | |
string public symbol; | |
mapping (uint256 => string) internal tokenNames; | |
mapping (uint256 => string) internal tokenSymbols; | |
mapping (uint256 => uint8) internal tokenDecimals; | |
mapping (uint256 => mapping (address => uint)) internal balances; | |
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
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID` |
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
/* | |
* fizzbuzz.cpp | |
* | |
* Created on: Apr 25, 2012 | |
* Author: Brian Geffon | |
* | |
* Modified on: May 25, 2016 | |
* Author: Anton Bukov | |
* | |
* fizzbuzz solved without looping or conditionals using only template recursion. |
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
#import <QuartzCore/QuartzCore.h> | |
#import "Bike.h" | |
@implementation Bike { | |
} | |
- (id)initWithFrame:(CGRect)frame { | |
self = [super initWithFrame:frame]; |
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 UIImage (ResizeableFallback) | |
- (UIImage *)resizableImageWithInsets:(UIEdgeInsets *)insets; | |
@end | |
@implementation | |
- (UIImage *)resizableImageWithInsets:(UIEdgeInsets *)insets | |
{ | |
if ([UIImage respondsToSelector:@selector(resizableImageWithCapInsets:)]) | |
return [self resizableImageWithCapInsets: insets]; | |
return [self stretchableImageWithLeftCapWidth:insets.left topCapWidth:insets.top]; | |
} |