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
require 'digest' | |
filename = "House.Of.Cards.2013.S02E01.720p.WEB-DL.x264-Sohu.mp4" | |
f = File.new(filename, "rb") | |
puts f.stat.inspect | |
file_size = File.size?(filename) | |
offset = [] |
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
/*! | |
* | |
* Imgur CORS Image upload | |
* | |
* Author & Copyright: timdream (timdream@gmail.com; http://timdream.org/) | |
* License: MIT LICENSE | |
* | |
*/ | |
"use strict"; |
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
BluetoothSDK.pkg | |
CoreAudioSDK.pkg | |
DevSDK.pkg | |
DeveloperToolsCLI.pkg | |
FireWireSDK.pkg | |
JavaSDK.pkg | |
OpenGLSDK.pkg | |
QuickTimeSDK.pkg | |
WebKitSDK.pkg | |
X11Documentation.pkg |
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
#!/usr/bin/env ruby | |
# Xcode auto-versioning script for Subversion by Axel Andersson | |
# Updated for git by Marcus S. Zarra and Matt Long | |
# Converted to ruby by Abizer Nasir | |
# Appends the git sha to the version number set in Xcode. | |
# see http://www.stompy.org/2008/08/14/xcode-and-git-another-build-script/ for more details | |
# These are the common places where git is installed. | |
# Change this if your path isn't here |
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
#import <Foundation/Foundation.h> | |
@interface ZBFacebookTestUserManager : NSObject | |
- (id)initWithAppID:(NSString *)inAppID appSecret:(NSString *)inAppSecret; | |
- (NSDictionary *)createTestAccountWithName:(NSString *)inUsername error:(NSError **)outError; | |
- (BOOL)deleteTestAccountWithUserID:(NSString *)inUserID error:(NSError **)outError; | |
@property (readonly) NSString *appID; | |
@property (readonly) NSString *appSecret; |
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
diff --git a/gc.c b/gc.c | |
index ace7a08..07b7521 100644 | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -253,6 +253,7 @@ typedef struct rb_objspace { | |
size_t total_allocated_object_num; | |
size_t total_freed_object_num; | |
int gc_stress; | |
+ int gc_disable_lazy_sweep; | |
Changes:
-
this version includes backport of Greg Price's patch for speedup startup http://bugs.ruby-lang.org/issues/7158 .
ruby-core prefers his way to do thing, so that I abandon cached-lp and sorted-lf patches of mine.
-
this version integrates 'array as queue' patch, which improves performance when push/shift pattern is heavily used on Array.
This patch is accepted into trunk for Ruby 2.0 and last possible bug is found by Yui Naruse. It is used in production* for a couple of months without issues even with this bug.
介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
OlderNewer