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
/* | |
* SlideShowLayer by Will Larson and Luke Hatcher. 10/29/2008. | |
* Released under MIT License. | |
* Please check out from repository for full license detail. | |
* | |
* Nothing too exiting happening here. | |
* Apologies that it is not in Obj2.0 | |
* syntax, but I'm still ambivalent about | |
* the ambiguousness of properties. | |
*/ |
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
class ImagecommitController < ApplicationController | |
before_filter :find_svn_modify | |
def index | |
@result = "SVN仓库没有改变!" and return unless @is_modify | |
end | |
def commit | |
unless @is_modify |
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
- (NSString *) base64EncodingWithLineLength:(unsigned int) lineLength data:(NSData *)imgData { | |
static const char *encodingTable = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
const unsigned char *bytes = [imgData bytes]; | |
NSMutableString *result = [NSMutableString stringWithCapacity:[imgData length]]; | |
unsigned long ixtext = 0; | |
unsigned long lentext = [imgData length]; | |
long ctremaining = 0; | |
unsigned char inbuf[3], outbuf[4]; | |
short i = 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
// | |
// PlayMidiDemoViewController.h | |
// PlayMidiDemo | |
// | |
// Created by xhan on 9/9/09. | |
// Copyright In-Blue 2009. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "fmod.hpp" |
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
class ImagecommitController < ApplicationController | |
before_filter :find_svn_modify | |
def index | |
@result = "SVN仓库没有改变!" and return unless @is_modify | |
end | |
def commit | |
unless @is_modify |
NewerOlder