超ニッチですが、メモとして。
GIF ファイルの容量を 1MB 未満にしないと再変換されてしまう。よって、いかに容量を小さくするかというのが焦点になる。
- 画像サイズを小さくする。
- 色数を少なくする。
| #!/usr/bin/env python | |
| import urllib | |
| import urlparse | |
| import oauth2 as oauth | |
| [UIView animateWithDuration:0.3 animations:^() { | |
| self.commentContentLabel.alpha = (editing)? 0.0 : 1.0; | |
| }]; | |
| //////////////// | |
| [UIView beginAnimations:nil context:nil]; | |
| [UIView setAnimationDuration:1.0]; | |
| [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.commentContentLabel cache:YES]; | |
https://github.com/allending/Kiwi/wiki
| - (void)fetchWithRequest:(NSFetchRequest *)request | |
| completion:(void(^)(NSArray *results, NSError *error))handler | |
| { | |
| [request setResultType:NSManagedObjectIDResultType]; | |
| void (^executeHandler)(NSArray *, NSError *) = ^(NSArray *results, NSError *error){ | |
| dispatch_async(dispatch_get_main_queue(), ^{ | |
| if (handler) handler(results, error); | |
| }); | |
| }; | |
| [self.backgroundContext performBlock:^{ |
| # set up flags for Numpy C extentions compiling | |
| export CFLAGS="-arch i386 -arch x86_64" | |
| export FFLAGS="-m32 -m64" | |
| export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64" | |
| export CC=gcc-4.2 | |
| export CXX="g++ -arch i386 -arch x86_64" | |
| pip install numpy | |
| # success! |
従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。