#README
#description ** do something evil as you want to **
- login with your account via any web brower
- use some tools to get your cookies
- pastie the cookies string into scripts
class ImagecommitController < ApplicationController | |
before_filter :find_svn_modify | |
def index | |
@result = "SVN仓库没有改变!" and return unless @is_modify | |
end | |
def commit | |
unless @is_modify |
// | |
// PlayMidiDemoViewController.h | |
// PlayMidiDemo | |
// | |
// Created by xhan on 9/9/09. | |
// Copyright In-Blue 2009. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "fmod.hpp" |
- (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; |
class ImagecommitController < ApplicationController | |
before_filter :find_svn_modify | |
def index | |
@result = "SVN仓库没有改变!" and return unless @is_modify | |
end | |
def commit | |
unless @is_modify |
/* | |
* 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. | |
*/ |
public enum TriggerState | |
{ | |
Init, | |
Running, | |
Finished | |
} | |
public class MixerTriggerScript : MonoBehaviour { | |
public PieJuiceTriggerScript anotherTrigger; | |
public TriggerState state = TriggerState.Init; |
tell application "Adium" | |
go available with message "test again" -- or away or invisible | |
end tell |
// | |
// NSDropContainer.h | |
#import <Cocoa/Cocoa.h> | |
@protocol NSDropContainerDelegate; | |
@interface NSDropContainer : NSBox { | |
id<NSDropContainerDelegate> _delegate; |
#include <netinet/in.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
Boolean result; | |
CFHostRef hostRef; | |
CFArrayRef addresses; | |
NSString *hostname = @"m2.qiushibaike.com"; | |
hostRef = CFHostCreateWithName(kCFAllocatorDefault, (CFStringRef)hostname); |