Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
NSString *MTExtractStructName(NSString *typeEncodeString) | |
{ | |
NSArray *array = [typeEncodeString componentsSeparatedByString:@"="]; | |
NSString *typeString = array[0]; | |
int firstValidIndex = 0; | |
for (int i = 0; i< typeString.length; i++) { | |
char c = [typeString characterAtIndex:i]; | |
if (c == '{' || c=='_') { | |
firstValidIndex++; | |
}else { |
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
class CacheGenerator<T:Hashable> : IteratorProtocol { | |
typealias Element = T | |
var counter: Int | |
let array:[T] | |
init(keys:[T]) { | |
counter = 0 | |
array = keys |
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
#!/bin/sh | |
if [ `id -u` -ne 0 ] | |
then | |
echo "please run it by root" | |
exit 0 | |
fi | |
apt-get -y update | |
apt-get -y install pptpd || { |
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 <UIKit/UIKit.h> | |
@interface Credit : UILabel | |
-(void)autochangeFontsize:(double) number; | |
-(void)changeFromNumber:(double) originalnumber toNumber:(double) newnumber withAnimationTime:(NSTimeInterval)timeSpan; | |
@end |
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
// | |
// Graph.h | |
// ColorAtom | |
// | |
// Created by 杨萧玉 on 14-4-21. | |
// Copyright (c) 2014年 杨萧玉. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@import SpriteKit; |